Questions tagged [proxy]

A device or program that stands between two or more interconnected programs or devices. Use [dynamic-proxy] for the Java class, [proxy-pattern] for the design pattern, [es6-proxy] for the JavaScript Proxy object.

A proxy server is a server that acts as an intermediary for requests from clients seeking resources from other servers. A client connects to the proxy server, requesting some service, such as a file, connection or a web page available from a different server, and the proxy server evaluates the request as a way to simplify and control its complexity.


Purpose

Many users worry about what kind of information can be traced back to them. An Internet proxy server can be used as an intermediary so that the sites never directly connect to the host network. Some websites block certain Internet users by geography, so using a Web proxy located in the Web host's country will allow foreign users to use the website.


References

19642 questions
82
votes
6 answers

WCF ChannelFactory vs generating proxy

Just wondering under what circumstances would you prefer to generate a proxy from a WCF service when you can just invoke calls using the ChannelFactory? This way you won't have to generate a proxy and worry about regenerating a proxy when the server…
TheWommies
  • 4,922
  • 11
  • 61
  • 79
82
votes
7 answers

Only use a proxy for certain git urls/domains?

Is it possible to configure git to use a proxy only for specific domains? I'd like to use our corporate proxy to access Github but leave it off for accessing our own internal git repos. I'm using bower and it needs to require items both within our…
robdodson
  • 6,616
  • 5
  • 28
  • 35
79
votes
4 answers

file_get_contents behind a proxy?

At work we have to use a proxy to basically access port 80 for example, we have our own custom logins for each user. My temporary workaround is using curl to basically login as myself through a proxy and access the external data I need. Is there…
meder omuraliev
  • 183,342
  • 71
  • 393
  • 434
78
votes
16 answers

Bower calls blocked by corporate proxy

I'm trying to use Bower for a web app, but find myself hitting some sort of proxy issues: D:\>bower search jquery bower retry Request to https://bower.herokuapp.com/packages/search/jquery failed with ECONNRESET, retrying in 1.2s bower retry …
LJW
  • 2,378
  • 1
  • 21
  • 35
78
votes
7 answers

Real life usage of the X-Forwarded-Host header?

I've found some interesting reading on the X-Forwarded-* headers, including the Reverse Proxy Request Headers section in the Apache documentation, as well as the Wikipedia article on X-Forwarded-For. I understand that: X-Forwarded-For gives the…
BenMorel
  • 34,448
  • 50
  • 182
  • 322
78
votes
7 answers

Proxy with urllib2

I open urls with: site = urllib2.urlopen('http://google.com') And what I want to do is connect the same way with a proxy I got somewhere telling me: site = urllib2.urlopen('http://google.com', proxies={'http':'127.0.0.1'}) but that didn't work…
Chris Stryker
  • 1,058
  • 2
  • 10
  • 18
78
votes
12 answers

npm behind a proxy fails with status 403

I'm trying to run npm behind a proxy. I've tried both entering the proxy directly or through Authoxy: npm config set proxy http://localhost:8999 npm config set https-proxy http://localhost:8999 Regardless of which proxy I use, I always end up with…
nwinkler
  • 52,665
  • 21
  • 154
  • 168
77
votes
1 answer

What is the difference between HTTP_CLIENT_IP and HTTP_X_FORWARDED_FOR?

I understand that a header HTTP_X_FORWARDED_FOR is set by proxy servers to identify the ip-address of the host that is making the HTTP request through the proxy. I've heard claims that the header HTTP_CLIENT_IP is set for similar purposes. What is…
Ethan Heilman
  • 16,347
  • 11
  • 61
  • 88
77
votes
3 answers

Proxying to another web service with Flask

I want to proxy requests made to my Flask app to another web service running locally on the machine. I'd rather use Flask for this than our higher-level nginx instance so that we can reuse our existing authentication system built into our app. The…
Joe Shaw
  • 22,066
  • 16
  • 70
  • 92
77
votes
11 answers

How do I get the remote address of a client in servlet?

Is there any way that I could get the original IP address of the client coming to the server? I can use request.getRemoteAddr(), but I always seem to get the IP of the proxy or the web server. I would want to know the IP address that the client is…
grassbl8d
  • 2,089
  • 4
  • 24
  • 34
75
votes
10 answers

Git proxy bypass

Git works in a proxied environment by setting the http.proxy configuration parameter. For certain addresses I need to bypass the proxy. Is there a no-proxy/bypass-proxy configuration parameter?
yannisf
  • 6,016
  • 9
  • 39
  • 61
74
votes
7 answers

How can I set a proxy server for gem?

I am unable to install SASS through command prompt. I tried below steps c:\gem install sass I am getting below error: ERROR: Could not find a valid gem 'sass' (>= 0), here is why: Unable to download data from https://rubygems.org/ -…
user3358928
  • 749
  • 1
  • 6
  • 4
74
votes
2 answers

What is com.sun.proxy.$Proxy

I have seen that when errors occur deep in different frameworks (e.g frameworks implementing the EJB specification or some JPA providers) the stacktrace contain classes like com.sun.proxy.$Proxy. I know what a Proxy is, but I am looking for a more…
V G
  • 18,822
  • 6
  • 51
  • 89
74
votes
9 answers

How do I configure Charles Proxy and Android so that I can view HTTPS sessions

I want to view HTTPS sessions on my Android phone using Charles Proxy. I need to see the raw request/response contents for debugging my app. I've configured Charles by adding the host and port under "Proxy Settings" -> SSL Tab. When I run the app,…
bianca
  • 7,004
  • 12
  • 43
  • 58
72
votes
5 answers

How does Windows actually detect LAN (proxy) settings when using Automatic Configuration

When Windows Internet Properties -> Connections -> LAN Settings -> Automatic Configuration is set to "Automatically detect settings" how does Windows actually determine/discover what the settings are? Is it a network broadcast or some kind of…
Craig Day
  • 2,525
  • 1
  • 24
  • 26