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
61
votes
4 answers

Dynamic proxy_pass to $var with nginx 1.0

I am trying to proxy a request to different targets depending on an environment variable. My approach was to put the target url into the custom variable $target and give this to proxy_pass. But using a variable with proxy_pass doesn't seem to work.…
Sebastian Heuer
  • 1,022
  • 1
  • 11
  • 17
61
votes
11 answers

Angular-CLI proxy to backend doesn't work

https://github.com/angular/angular-cli#proxy-to-backend here is an instruction how to do proxying to backend. I did everything step by step and still requests aren't proxied. 8080 - my Express backend 4200 - my Angular2 frontend In Angular2 project…
elzoy
  • 5,237
  • 11
  • 40
  • 65
61
votes
13 answers

Why "Content-Length: 0" in POST requests?

A customer sometimes sends POST requests with Content-Length: 0 when submitting a form (10 to over 40 fields). We tested it with different browsers and from different locations but couldn't reproduce the error. The customer is using Internet…
stesch
  • 7,202
  • 6
  • 47
  • 62
60
votes
7 answers

Set up an HTTP proxy to insert a header

I need to test some HTTP interaction with a client I'd rather not modify. What I need to test is the behavior of the server when the client's requests include a certain, static header. I'm thinking the easiest way to run this test is to set up an…
Logan
  • 1,884
  • 1
  • 12
  • 11
60
votes
7 answers

nginx simple proxy_pass to localhost not working

I'm trying to run a minimalist reverse-proxy, and came up with the following : events { worker_connections 4096; } http { server { listen 80; location / { proxy_pass http://127.0.0.1:3000/; } } …
agam
  • 5,064
  • 6
  • 31
  • 37
59
votes
3 answers

Unable to install Charles root certificate on iOS Simulator 14.5

On Charles mac app, if I go to Help > SSL Proxying > Install Charles Root Certificate on iOS Simulators and then run any Simulator from Xcode I don't see Charles certificates installed on simulator. I am using Charles v4.6.1. This was working fine…
SnK
  • 764
  • 2
  • 6
  • 10
59
votes
6 answers

How to specify an authenticated proxy for a python http connection?

What's the best way to specify a proxy with username and password for an http connection in python?
Rehan
  • 1,299
  • 2
  • 16
  • 19
59
votes
11 answers

bower proxy configuration

is there a way to configure bower not only to use a proxy but ignore the proxy configuration for some domains? I have the problem, that I will run an internal bower registry for our own developed components. For that repository I would like to…
Johann Sonntagbauer
  • 1,294
  • 1
  • 10
  • 20
58
votes
3 answers

What is Proxy Class in C++

What is a Proxy Class in C++? Why it is created and where it is useful?
Priyanka Mishra
  • 10,400
  • 18
  • 62
  • 75
58
votes
9 answers

How to make a simple dynamic proxy in C#

I want to build a dynamic proxy object to add certain functionality to an object. basically i want to receive an object, wrap it with an object that looks identical to the original i got, and intercept all the calls. class Wrapper : DynamicProxy//…
AK_
  • 7,981
  • 7
  • 46
  • 78
58
votes
16 answers

ERR_CONTENT_LENGTH_MISMATCH on nginx and proxy on Chrome when loading large files

I'm getting the following error on my chrome console: GET http://localhost/grunt/vendor/angular/angular.js net::ERR_CONTENT_LENGTH_MISMATCH This only happens when a simultaneous requests are shot towards nginx e.g. when the browsers cache is empty…
amit
  • 1,991
  • 1
  • 18
  • 29
56
votes
16 answers

Proxy which requires authentication with Android Emulator

Has anybody managed to get the Android Emulator working behind a proxy that requires authentication? I've tried setting the -http-proxy argument to http://DOMAIN/USERNAME:PASSWORD@IP:PORT but am having no success. I've tried following the docs to…
Rich Lawrence
  • 1,660
  • 3
  • 15
  • 17
56
votes
7 answers

Do Android proxy settings apply to all apps on the device?

If you set up proxy settings for an android device, do they apply to all apps on the device including the browser? Or do they only apply to the browser? The reason I ask is that when you go to change the proxy settings on an android device there is…
Micro
  • 10,303
  • 14
  • 82
  • 120
56
votes
3 answers

route different proxy based on subdomain request in nginx

I have one dedicated server in that server I deployed 5 nodejs application. domain name: www.nnd.com dedicated server ip: xxx.xx.x.60 I had domain which is pointed to my dedicated server ip. sub domains are : app1.nnd.com pointed to…
sridhar
  • 861
  • 3
  • 10
  • 14
56
votes
5 answers

Node.js global proxy setting

I was working in a corporate network behind a proxy server. In my code I can set the proxy by using the approach mentioned in this thread. But the problem is that most of the 3rd party modules do not have proxy setting and I cannot modify their code…
Shaun Xu
  • 4,476
  • 2
  • 27
  • 41