Sunday, October 8, 2017

How to access applications & websites behind Proxy Server from CLI or browser

In today's world, it's very common, industry standard practice to use proxy servers to safeguard their corporate and institutional security, to control employee internet usages, to balance traffic on the server or for faster speeds and bandwidth saving. Therefore to access the applications, API endpoints, blocked websites like GitLab, GitHub, Facebook, Youtube etc, that are behind a proxy server, one need to use the appropriate proxy server.

Today we would discuss, how to access applications/websites behind proxy server using CLI & browser in Windows and Linux systems? After going through this article, one would have the answers of below questions:
  • Unable to pull the Git repository hosted on GitLab or GitHub using CLI i.e. from command prompt or Git Bash
  • Unable to download packages from internet through CLI using wget, curl, apt-get, yum or pip
  • Unable to access API endpoints, project applications in the development, qa, staging environment from the browser or CLI
  • Unable to access blocked websites (GitLab, GitHub, Facebook, Youtube etc) using browser

Table Of Contents

1. Scope of the article
2. Prerequisites
3. Use Proxy Server while executing commands in the CLI
4. Use Proxy Server in the browser
5. Conclusion