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
6
votes
1 answer

How to update location in for http call

Im using the reverse proxy from the following link, currently Im getting some location and I want to update it(the location), How can I do that? proxy.on('proxyRes', function (proxyRes, req, res) { res.headers.location = 'http:/a/b/' }); and I…
07_05_GuyT
  • 2,787
  • 14
  • 43
  • 88
6
votes
2 answers

DNS through socks proxy. How do I change windows settings for domain resolution.

I am looking for a program to reroute windows domain resolution lookup through a socks proxy capable with many internet browsers and internet proxies. So far in Control Panel, Local Area Connection 1, TCP/IP Properties, I use the following DNS…
hi l
  • 61
  • 1
  • 2
6
votes
3 answers

Nginx WebSocket proxying keep getting HTTP 301 redirects

I have been trying to to get the Nginx WebSocket proxy to work for the past few days but for the life of me I couldn't get it to work. I followed the official guide here and have been using Python's websockets module as the server and a npm package…
Devy
  • 9,655
  • 8
  • 61
  • 59
6
votes
2 answers

Proxy request to new port with http-proxy

I use this code I want to create proxy that all the application calls to port 3000 will be routed "under the hood" to port 3002 var http = require('http'), httpProxy = require('http-proxy'); var proxy = httpProxy.createProxyServer(); …
John Jerrby
  • 1,683
  • 7
  • 31
  • 68
6
votes
2 answers

Reading a Buffer and Rewriting it to a http.Response in Go

I want to program a HTTP-Proxy in golang. I use this module for the proxy: https://github.com/elazarl/goproxy. When someone uses my proxy, it calls a function with an http.Response as an Input. Let's call it "resp". resp.Body is an io.ReadCloser. I…
Max Rumpf
  • 138
  • 3
  • 10
6
votes
2 answers

The security token could not be authenticated or authorized (.net, soap1.2)

I've been trying to get access to a thirdparty-webservice for the past two weeks and right now I'm hopelessly confused. So the webservice is setup in the Intranet. I have the URL, user and Password to access it. They also sent me the .wsdl which i…
OhSnap
  • 376
  • 2
  • 10
  • 30
6
votes
1 answer

nginx proxy - how to allow connection from a specific ip

I've installed nginx and set it up as a forward proxy (see attached nginx.conf) The server became overloaded and it seems like someone else was using it. is there a way to limit the nginx proxy to receive request only from specific ips? Please…
Elia Weiss
  • 8,324
  • 13
  • 70
  • 110
6
votes
1 answer

cntlm proxy with phantomjs

I'm trying to use the cntlm proxy on my windows machine to talk to a local web application on IIS that uses Windows Authentication from PhantomJS. To create the proxy, I'm doing: cntlm -v -u username@domain -p password -l 1456 localhost:80 My app…
itslittlejohn
  • 1,808
  • 3
  • 20
  • 33
6
votes
0 answers

php - Use proxy pac file with curl?

Is there a way to use a proxy pac file with curl in php? I'd like my web server to be able to access external web pages through my company's proxy, but rather than a static IP+port, a pac file is used. Can I do this in curl?
user3475234
  • 1,503
  • 3
  • 22
  • 40
6
votes
1 answer

set http_proxy not working on windows

I am using Windows 7. I was trying to install jekyll using : gem install jekyll I get an error: Unable to download data from .... connection timed out. So I tried to set http_proxy and https_proxy by : set http_proxy = http://proxy:port set…
Pukki
  • 586
  • 1
  • 7
  • 18
6
votes
2 answers

Node.js express-session what does the proxy option do?

app.use(session( { ... proxy: true, resave: true, saveUninitialized: true } )); I found a tutorial on express-session and they have an proxy: true option. Can I leave it on true? What does this do? Is it better to include it? I…
user3806549
  • 1,428
  • 1
  • 17
  • 25
6
votes
2 answers

Implementing equals() with JDK Dynamic Proxies

For the first time ever, I have to implement my own proxy classes using the standard JDK Dynamic Proxy. It works fairly well, except for one detail: the equals(...) method. Let's assume that we have a simple Interface like this, which we want to…
Martin Häusler
  • 6,544
  • 8
  • 39
  • 66
6
votes
2 answers

HttpUrlConnection proxy authentication gets into redirect loop

I am trying to get contents of an URL through an authenticated proxy. This is the code i am trying to use: Authenticator authenticator = new Authenticator() { public PasswordAuthentication getPasswordAuthentication() { …
6
votes
1 answer

How can i set proxy with authentication in selenium chrome web driver using python

I have following script to visit a web page using python selenium Chrome driver. from selenium import webdriver USERNAME = 'usename' PASSWORD = 'pass' proxies = ["xxx.xxx.xxx.xxx"] proxy_tpl ='{0}:{1}' proxy = proxy_tpl.format(proxies[0],'xx')…
open source guy
  • 2,727
  • 8
  • 38
  • 61
6
votes
3 answers

Setting up browsermob proxy with ChromeDriver

I'm trying to set up browsermob to work in my selenium project. I was looking for a way to use ChromeOptions to set the proxy, but all sources tell me to use ChromeOptions for everything else, then convert it into DesiredCapabilities before…
Julian
  • 1,665
  • 2
  • 15
  • 33