FAQ Database Discussion Community


Http proxy server tests [closed]

proxy,server,load-testing,stress-testing,http-proxy
I have implemented a http proxy client/server. Currently I intended to test this proxy client/server performance. Can anybody help me what approaches exists to make these tests?

Figuring out which response belongs to which request using proxpy, Python

python,http,proxy,http-proxy
I am writing a plugin for proxpy (you don't need to be familiar with it to answer this question). This is basically an HTTP/HTTPS proxy. You extend it by implementing two functions, the arguments to which is the HTTP request and response respectively. Something like this: method1(request): #your implementation method2(response):...

Set proxy in nightwatch.js

node.js,selenium-webdriver,http-proxy,nightwatch.js
I'm writing Integration Tests using nightwatch.js in a Node.js application. For a particular test case, I want nightwatch to connect via a proxy. What would be the right way to do this? I can't find anything from its official documentation, or from its Google Group. The Selenium documentation suggests setting...

How can I alter a Chocolatey package's $url for install

powershell,proxy,http-proxy,chocolatey
TLDR version: I need to be able to append to the end of the URL that a chocolatey package specifies for its download source. I'm trying to use Chocolatey to install the Android-SDK package and am having an issue with my filtering proxy (the functionality and provision of which, I...

How do you use Thrift protocol via corporate Proxy?

proxy,http-proxy,thrift-protocol,zipkin
I've had a search over the internet but can't seem to find any straightforward instructions on how to use the Thrift protocol from behind a proxy. To give you a bit of background - we have a Zipkin instance setup (https://github.com/twitter/zipkin) that uses a Cassandra instance (http://cassandra.apache.org/) to store Zipkin...

A simple HTTPS proxy server with Apache Camel

java,https,apache-camel,http-proxy
I am trying to implement a simple HTTP proxy service with Apache Camel. My code looks like this: from("jetty:http://localhost:80?matchOnUriPrefix=true") .recipientList(simple("jetty:${in.header.CamelHttpUrl}?bridgeEndpoint=true&throwExceptionOnFailure=false&disableStreamCache=true")); It is essentially this with a dynamic recipient list to support multiple destinations. I also had to add the disableStreamCache=true bit, otherwise I would get weird exceptions with path duplication...

unit test apache http client proxy 407

apache,junit4,apache-httpclient-4.x,http-proxy
I am trying to build a Junit/Integration test which needs to contact an external server. However, I cannot get past the proxy. I get a 407 blank authentication page error. The Test setup I use @Before public void onSetUp() throws Exception { System.setProperty("http.proxyHost", "webproxy-nl.test.com"); System.setProperty("http.proxyPort", "8080"); System.setProperty("https.proxyHost", "webproxy-nl.test.com"); System.setProperty("https.proxyPort", "8080");...

Can somebody explain what this piece of twisted does?

python,linux,python-2.7,twisted,http-proxy
class ConnectProxy(Proxy): requestFactory = ConnectProxyRequest connectedRemote = None def requestDone(self, request): if request.method == 'CONNECT' and self.connectedRemote is not None: self.connectedRemote.connectedClient = self else: Proxy.requestDone(self, request) What does self.connectedRemote.connectedClient = self do ?...

working with IdHTTPProxyServer1

c++builder,indy,http-proxy
I want to write a simple proxy with TIdHTTPProxyServer and this is my code : void __fastcall TForm1::FormCreate(TObject *Sender) { IdHTTPProxyServer1->DefaultPort = 8090; IdHTTPProxyServer1->Active = true; } //--------------------------------------------------------------------------- void __fastcall TForm1::FormClose(TObject *Sender, TCloseAction &Action) { int Index = 0; TList * cList; { cList = IdHTTPProxyServer1->Contexts->LockList(); try { for (...

Which changes do a browser make when using an HTTP Proxy?

http,http-proxy
Imagine a webbrowser that makes an HTTP request to a remote server, such as site.example.com If the browser is then configured to use a proxy server, let's call it proxy.example.com using port 8080, in which ways are the request now different? Obviously the request is now sent to proxy.example.com:8080, but...

Simple low level implementation of HTTP(S) proxy is not working

java,sockets,https,http-proxy
I am implementing simple HTTP(S) proxy/tunnel in Java. All done in multithreaded application which uses sockets for creating tunnel. The code I came up with works just fine with HTTP, but it doesn't work with HTTPS. The issue I get is that the last server in chain (means of my...

NativeScript create fails with Error: getaddrinfo ENOTFOUND

node.js,npm,http-proxy,nativescript
This is for NativeScript version 0.9.1 I've been following the NativeScript setup for windows information here. I'm now at a point where I'm trying to create a new NativeScript project using the following command nativescript create NativeScriptTest --log trace Except this is failing because it can't get the hello-world project...

What Java properties to pass to a Java app to authenticate with a http proxy

java,apache-httpclient-4.x,bamboo,http-proxy,apache-httpcomponents
I have a Java application that is trying to access a web service via http proxy. The Java app is 3rd party app for which we don't have access to source code. Its launch can be configured by passing Java launch parameters among other things. I am wondering what are...

How to forward a request to another URL with all request information (headers, ip etc.)?

javascript,node.js,express,httprequest,http-proxy
Please see below: My app receives request from the user. My app makes an API call to the 3rd party application using request module. In order 3rd party API to work properly it needs to receive USERS IP and header information. (It's an ad server). But when I send a...

Does proxy have to load everything completely first before sending them back?

apache,http,iis,proxy,http-proxy
I've been using proxy services, and I want to know some details behind it, regarding its speed and efficiency. Consider following scenario: There's a mp3 file on server M, a client wants to download that file, but he doesn't want to expose himself, so he decides to use a proxy...

Using web proxy with Java 8 JAX-RS RESTEasy clients

eclipse,jax-rs,resteasy,http-proxy
I can't seem to get JAX-RS clients to use a web proxy on Java 8. I'm using RESTEasy 3.0.10.Final, and running from inside Eclipse 4.4.2 on Windows 7 Professional 64-bit. I set up a FreeProxy server on localhost running at 192.168.1.123:3128. I turn logs on and telnet to 192.168.1.123 3128...

Phones or other machines not connecting [Solved]

linux,proxy,http-proxy,mitmproxy
I followed all the steps and installed mitmproxy in my virtual machine and then proceeded to test it. I opened firefox and used the IP address I got from ifconfig. {inet address} And it worked! But when I to do the same for my other laptop or phone{with the ca...