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
71
votes
8 answers

Authenticated HTTP proxy with Java

How can I configure the username and password to authenticate a http proxy server using Java? I just found the following configuration…
Andre Pastore
  • 2,841
  • 4
  • 33
  • 44
71
votes
6 answers

Setting up proxy for HTTP client

I'm trying to setup the HTTP client so that it uses a proxy, however I cannot quite understand how to do it. The documentation has multiple reference to "proxy" but none of the functions seem to allow to define the proxy. What I need is something…
laurent
  • 88,262
  • 77
  • 290
  • 428
71
votes
3 answers

Serving two sites from one server with Nginx

I have a Rails app up and running on my server and now I'd like to add another one. I want Nginx to check what the request is for and split traffic based on domain name Both sites have their own nginx.conf symlinked into sites-enabled, but I get an…
Chris
  • 11,819
  • 19
  • 91
  • 145
69
votes
7 answers

Running conda with proxy

I'm using Anaconda 2.7 on windows, and my internet connection uses a proxy. Previously, when using python 2.7 (Not Anaconda), I installed package like this: pip install {packagename} --proxy proxy-us.bla.com:123 Is there a way to run conda with…
AvidLearner
  • 4,123
  • 5
  • 35
  • 48
68
votes
2 answers

Why Doesn't Fiddler Show Curl Traffic?

Why doesn't Fiddler show curl traffic? Other traffic gets displayed, just not curl. How can I get fiddler to intercept curl traffic?
BSalita
  • 8,420
  • 10
  • 51
  • 68
67
votes
3 answers

Maven plugin not using Eclipse's proxy settings

I am using springsource tool suite 2.7.2, based on Eclipse 3.7. The Maven plugin comes now out of the box with Eclipse which is great, and this problem occurred even with previous version of Eclipse. So here is my issue: I have set the proxy…
TheYann
  • 1,367
  • 2
  • 12
  • 13
67
votes
22 answers

Postman can't reach localhost

I am in a corporate env so I have to use a proxy to reach servers. This works well in postman and in browsers. What I can't reach is localhost in postman but I can reach localhost in the browser. I am running Postman for Linux Version 6.0.9. I have…
user1329339
  • 1,295
  • 1
  • 11
  • 26
65
votes
5 answers

Proxy Error 502 : The proxy server received an invalid response from an upstream server

We are building a mass mailing sending application in Java. Mail is being send by third party SMTP. After sending 400-500 mails tomcat6 service get stopped. Below is the error. Proxy Error The proxy server received an invalid response from…
Ranjeet Ranjan
  • 921
  • 2
  • 10
  • 21
64
votes
10 answers

How should I set the default proxy to use default credentials?

The following code works for me: var webProxy = WebProxy.GetDefaultProxy(); webProxy.UseDefaultCredentials = true; WebRequest.DefaultWebProxy = webProxy; Unfortunately, WebProxy.GetDefaultProxy() is deprecated. What else should I be doing? (using…
Brian Genisio
  • 47,787
  • 16
  • 124
  • 167
64
votes
7 answers

How do I set proxy for chrome in python webdriver?

I'm using this code: profile = webdriver.FirefoxProfile() profile.set_preference("network.proxy.type", 1) profile.set_preference("network.proxy.http", "proxy.server.address") profile.set_preference("network.proxy.http_port",…
sarbo
  • 1,661
  • 6
  • 21
  • 26
63
votes
3 answers

Apache reverse proxy with basic authentication

Trying to configure my reverse proxy with basic authentication before forward the traffic to my back end server. Can any one give me a solution. Example here: User(internet) -> reverse proxy / vhosts server (need to add basic authentication here )…
Vincent P
  • 761
  • 1
  • 5
  • 6
63
votes
25 answers

proxy not working for react and node

I'm having issues with the proxy I set up. This is my root package.json file: "scripts": { "client": "cd client && yarn dev-server", "server": "nodemon server.js", "dev": "concurrently --kill-others-on-fail \"yarn server\" \"yarn…
Strahinja Ajvaz
  • 2,521
  • 5
  • 23
  • 38
63
votes
6 answers

nginx: use environment variables

I have the following scenario: I have an env variable $SOME_IP defined and want to use it in a nginx block. Referring to the nginx documentation I use the env directive in the nginx.conf file like the following: user www-data; worker_processes…
schickling
  • 4,000
  • 4
  • 29
  • 33
63
votes
5 answers

Is it possible to specify proxy credentials in your web.config?

I need to configure a website to access a webservice on another machine, via a proxy. I can configure the website to use a proxy, but I can't find a way of specifying the credentials that the proxy requires, is that possible? Here is my current…
spmason
  • 4,048
  • 2
  • 24
  • 19
62
votes
5 answers

Using RestTemplate, how to send the request to a proxy first so I can use my junits with JMeter?

I have a web service running on my dev box implemented using Spring-MVC 3.0. I have various JUnits that test against that service using RestTemplate. What I would like to do is have JMeter pick up those JUnits REST requests when I run them. However,…
AHungerArtist
  • 9,332
  • 17
  • 73
  • 109