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
123
votes
17 answers

Running Selenium Webdriver with a proxy in Python

I am trying to run a Selenium Webdriver script in Python to do some basic tasks. I can get the robot to function perfectly when running it through the Selenium IDE inteface (ie: when simply getting the GUI to repeat my actions). However when I…
user2479813
  • 1,231
  • 2
  • 9
  • 3
119
votes
22 answers

How to set up Android emulator proxy settings

I want to to use the browser inside the Android emulator, and I want to use the proxy settings on my machine. How can I set this up? Reading the very good Android manuals, they tell me that I should start Android using the following…
gath
  • 24,504
  • 36
  • 94
  • 124
118
votes
9 answers

How to make python Requests work via SOCKS proxy

I'm using the great Requests library in my Python script: import requests r = requests.get("http://example.com") print(r.text) I would like to use a SOCKS proxy, how can I do that? Requests seems to only support HTTP proxies.
lithuak
  • 6,028
  • 9
  • 42
  • 54
114
votes
8 answers

How to create a simple http proxy in node.js?

I'm trying to create a proxy server to pass HTTP GET requests from a client to a third party website (say google). My proxy just needs to mirror incoming requests to their corresponding path on the target site, so if my client's requested url…
Nasser Torabzade
  • 6,490
  • 8
  • 27
  • 36
110
votes
16 answers

Connect with SSH through a proxy

I have no real idea what I'm doing here so please bear that in mind if you can help me! I am trying to connect to my virtual server through a proxy but I can't connect, it just hangs. I'm assuming this is because it's not getting through our…
bencarter78
  • 3,555
  • 9
  • 35
  • 53
110
votes
6 answers

How to get pip to work behind a proxy server

I am trying to use python package manager pip to install a package and it's dependencies from the internet. However I am behind a proxy in my college and have already set the http_proxy environment variable. But when I try to install a package like…
Annihilator8080
  • 2,019
  • 3
  • 21
  • 20
107
votes
11 answers

How to use pip on windows behind an authenticating proxy

My computer is running windows behind a proxy on a windows server (using active directory), and I can't figure out how to get through it with pip (in python3). I have tried using --proxy, but it still just timeouts. I have also tried setting a…
aquavitae
  • 17,414
  • 11
  • 63
  • 106
106
votes
8 answers

How to preserve request url with nginx proxy_pass

I was trying to use Thin app server and had one issue. When nginx proxies the request to Thin (or Unicorn) using proxy_pass http://my_app_upstream; the application receives the modified URL sent by nginx (http://my_app_upstream). What I want is to…
Dmytrii Nagirniak
  • 23,696
  • 13
  • 75
  • 130
106
votes
8 answers

Using a socks proxy with git for the http transport

How to make git use a socks proxy for HTTP transport? I succeed in configuring git with GIT_PROXY_COMMAND to use a socks proxy for GIT transport. Also, I have configured my .curlrc file to defined the socks proxy and I can fetch information directly…
Yves Blusseau
  • 4,244
  • 4
  • 16
  • 7
105
votes
10 answers

C# Connecting Through Proxy

I work in a office which requires all connections to be made through a specific http proxy. I need to write a simple application to query some values from a webserver - it's easy if there were no proxy. How can I make the C# application proxy-aware?…
KalEl
  • 8,978
  • 13
  • 47
  • 56
103
votes
1 answer

Clojure 1.2.1/1.3/1.4 'proxy generated in Grails 2.0.0 runtime fails. 1.2.0 is fine

I'm working on extending the Grails Clojure plugin in Grails 2.0.0 (and 2.1.0-SNAPSHOT) and I wanted to update it to Clojure 1.3.0 and add clojure.tools.logging. Clojure throws an exception during compilation of a proxy of a ByteArrayOutputStream…
John Courtland
  • 1,055
  • 1
  • 7
  • 10
101
votes
4 answers

What does "trust proxy" actually do in express.js, and do I need to use it?

I am writing an express app that sits behind an nginx server. I was reading through express's documentation and it mentioned the 'trust proxy' setting. All it says is trust proxy Enables reverse proxy support, disabled by default I read the…
joeycozza
  • 1,284
  • 2
  • 12
  • 15
101
votes
2 answers

spring scoped proxy bean

Can someone explain the usage of the spring @ScopedProxy annotation? I thought it had something to do with session scoped beans, but I'm not quite sure what. In my usage of scopes, I've used session scoped beans without the @ScopedProxy annotation…
Jeff Storey
  • 56,312
  • 72
  • 233
  • 406
99
votes
10 answers

Getting RAW Soap Data from a Web Reference Client running in ASP.net

I'm trying to trouble shoot a web service client in my current project. I'm not sure of the platform of the Service Server (Most likely LAMP). I believe there is a fault on their side of the fence as i have eliminated the potential issues with my…
Andrew Harry
  • 13,773
  • 18
  • 67
  • 102
99
votes
1 answer

How to change proxy settings in Android (especially in Chrome)

Could you please help me: is it possible to set proxy settings in Android (especially in Chrome)? I have to change IP on Android during the testing. Or there is some soft which can help me to solve this issue...
Maksim Alekseychik
  • 3,578
  • 5
  • 17
  • 15