proxy

XML-RPC object mapping

Recently I was working on web services proxy. I got 2 web services proxy. UI will call Proxy A to let say create a record. then what Proxy A will do is to call Proxy B to do the actual task which create the record (For some reason must go through Proxy A) now the problem is When UI call Proxy A, Proxy A will pass the objectA to Proxy B c...

Tunnel a proxy through a proxy in cURL for PHP?

Hello! I'm trying to test open proxies to figure out who to block from my site, but I'd like to do that through a proxy of my own. Using PHP and cURL, how would I go about doing so? Is this what CURLOPT_HTTPPROXYTUNNEL is possibly used for..? pseudo code: Server (IP address A) connects to it's own proxy server (IP address B), which fo...

Is SoapHttpClientProtocol thread safe?

Hi, I created a Web Service proxy with the "add web reference" feature of VS 2008 (c#). The generated class derives from SoapHttpClientProtocol Can I store only one instance of my proxy in a singleton? Is it thread safe? Is there state between calls that would prevent me from doing this? Thanks! ...

Huge amount of time sending data with suds and proxy

Hi everyone, I have the following code to send data through a proxy using suds: import suds t = suds.transport.http.HttpTransport() proxy = urllib2.ProxyHandler({'http': 'http://192.168.3.217:3128'}) opener = urllib2.build_opener(proxy) t.urlopener = opener ws = suds.client.Client('http://xxxxxxx/web.asmx?WSDL', transport=t) re...

Strategies for dealing with URIs when building an application that sits behind a reverse proxy

I'm building an application with a self-contained HTTP server which can be either accessed directly, or put behind a reverse proxy (like Apache mod_proxy). So, let's say my application is running on port 8080 and you set up your Apache like this: ProxyPass /myapp http://localhost:8080 ProxyPassReverse /myapp http://localhost:8080 Th...

Webservice call through proxy server

I need to make a webservice call to a secured link(https:\). It is a two way SSL enabled link. So to access that link for making a webservice call, i need to set proxy server to the webservice link .Is there a sample code available for this ? ...

What is ServicePointManager.FindServicePoint used for?

Can someone explain what ServicePointManager.FindServicePoint is intended to be used for? I have been writing some code to work with proxies in C#, and have seen indicators that it might be useful in this respect, but can't see why or how. How is this class (ServicePointManager) or method (ServicePointManager.FindServicePoint) supposed...

Programmable transparent forward proxy

I'm looking for a way to script a transparent forward proxy such as the ones that users point their browsers to in proxy settings. I've discovered a distinct tradeoff in forward proxies between scriptability and robustness. For example, their are countless proxies developed in Ruby and Python that allow you to inspect each request resp...

Rotating Proxies for web scraping

I've got a python web crawler and I want to distribute the download requests among many different proxy servers, probably running squid (though I'm open to alternatives). For example, it could work in a round-robin fashion, where request1 goes to proxy1, request2 to proxy2, and eventually looping back around. Any idea how to set this up?...

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? How can I make any sort of connection through a proxy? ...

How to Specify Eclipse Proxy Authentication Credentials?

I'm using the latest version of Eclipse Galileo and I have to access the web from behind a proxy. I see where I can set the internet settings to manual and specify a proxy but there's no way to specify my authentication credentials that I can see and it doesn't prompt me for them either. So I'm not able to hit any plugin update sites etc...

CURL: Code 0 from proxy after CONNECT?

Hello all, I am trying to test the below function but every time I try to use any sort of proxy IP (I have tried about 15 now) - I generally get the same error: Received HTTP code 0 from proxy after CONNECT Here is the function, anything wrong with it? It could just be the proxies I am using but I have tried several times now. funct...

How to map 2 different objects together

My current project got 2 modules ModuleA and ModuleB, inside ModuleA and ModuleB got a class call 'Student' (same class name same attributes, but for some purpose ModuleA must call ModuleB to do the actual task) . They communicate to each other through Web Services. Now I want ModuleA WS will call ModuleB proxy to do the actual task. I...

In need of a SOCKS5 server library

I'd like help finding a library that adds SOCKS5 server functionality to my program. Please note, I do not want to connect to a SOCKS proxy server; rather, I want to actually run a SOCKS proxy server within my program. While there appears to be many SOCKS servers, they certainly were not built with the intention of being used as librari...

Is it possible to send message to dynamically contructed JMS/WS endpoint in Aqualogic Service Bus?

Aqualogic Service Bus allows creating "business" services for specific end points, but what if the end point is not defined during configuration time or even the number of end points is not fixed. Is it possible to send message to dynamically constructed JMS/WS endpoint in Aqualogic Service Bus? ...

C# using Tor as Proxy

Hi, I am trying to use Tor-Server as a proxy in HttpWebRequest, my code looks like this: HttpWebRequest request; HttpWebResponse response; request = (HttpWebRequest)WebRequest.Create("http://www.google.com"); request.Proxy = new WebProxy("127.0.0.1:9051"); response = (HttpWebResponse)request.GetResponse(); response.Close(); it work...

Libraries for evaluating PAC proxy configuration files?

Proxy auto-configuration (PAC) files contain javascript which resolves destination hosts into proxy configuration. Clearly I could use an embedded javascript engine and provide the objects that PAC files require, but that seems like a lot of work just to resolve a proxy -- I would much rather just have a library to do it. I'm intereste...

Serialization Proxy with XMLEncoder/Decoder

Hi everyone! How can I implement a Serialization Proxy that can be used with a XMLEncoder/Decoder? The classic one (the Bloch one, I mean) doesn't work... ...

Trying to understand the "Vary" HTTP header

I use PHP to generate dynamic Web pages. As stated on the following tutorial (see link below), the MIME type of XHTML documents should be "application/xhtml+xml" when $_SERVER['HTTP_ACCEPT'] allows it. Since you can serve the same page with 2 different MIMEs ("application/xhtml+xml" and "text/html") you should set the "Vary" HTTP header ...

How can I get Hudson to update through Proxy

We run a corporate proxy with authentication and we're running Hudson as our CI platform. Hudson can get to the outside world to tell which plugins need updating, but when we tell Hudson to download the updates to the plugins, we get the following error. java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 407 P...