proxy

Python socket data returns <byte> object. How to regexp it?

I'm writing a basic html-proxy in python (3), and up to now I'm not using prebuild classes like http.server. I'm just starting a socket which accepts connection: self.listen_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) self.listen_socket.bind((socket.gethostname(), 4321)) self.listen_socket.listen(5) (a, b) = self.listen_...

Why doesn't Java support socks4?

Take this code into consideration: Proxy p = new Proxy(Type.SOCKS, new InetSocketAddress(proxyURL, port)); try { long time = System.currentTimeMillis(); URLConnection urlConn = url.openConnection(p); System.out.println(urlConn.getContent()); int ping = (int)(System.currentTimeMillis() - time); ...

Make Maven Proxy/Server settings configurable based on location?

So I'm not sure what the best way to accomplish this is, but basically I have a laptop that I use at work for Maven projects. It works fine when I'm at work, but as soon as I walk out of the door of their corporate proxy and maven server, I often have to do alot of hand-fudging of the settings.xml file when I'm at home if I'm not VPN'ed...

GoogleAppEngine web proxy

Does anyone know of a simple open source proxy capable of running on google app engine or where to start in making one? (preferably in python, I'm trying to bypass a site blocking system) ...

Silverlight Out of Browser Application making Http Requests through a proxy

When running Silverlight 3.0 in OOB mode, you don't have to worry about any proxy authentication as the browser normally takes care of this. If I've installed a Silverlight app in OOB mode, is there any way to authenticate against a proxy? ...

Limiting upload bandwith from client to proxy using Squid

I am trying to limit the upload bandwith from all clients to my squid proxy acting as a transparent proxy. I tried to use delay_pools for this, but my clients are still able to upload at full speed. Is there a way to create a delay_pool that will limit the bandwidth between my client and the proxy server? Thanks, Ariel ...

Connecting to SVN server behind corporate firewall from home

How can I configure TortoiseSVN to connect to a SVN server behind a corporate firewall from home? This is the question I'm having a hard time finding an answer to. Here's what I DON'T have: Official VPN access to the corporate intranet. Control over the SVN server. Any control over the intranet. Cooperation from the IT department. H...

Java processes using proxy server, hosing up everything

I am doing some web sevices work on Java 5 on a mac (10.6.2).... Ever since IT made us start using a proxy server, life has gotten a lot harder. Java appears to be pulling in the system proxy server settings, but not the exclude list. This means when I try to call a web service for "localhost", java tries to his the proxy server inste...

send and recive packet in the Lan with multiple mac Addresses in C#

Hi , in our Network bandwith assign to mac address and if you can get more than one , you can get more bandwith :) if there any application or class in C# that can do this .... I'm already have the http proxy or port maper to send packets in different ip addresses but because of they are use same mac address it won't work . Any help i...

PHP: Proxy another url

I have a mod_rewrite rule that will send any subdomain requests to a php script which should proxy those requests to another host (internal proxy, not 302). I'm close, in that my script works with web browsers, but curl seems not like it: curl: (56) Received problem 2 in the chunky parser Here is my mod_rewrite: RewriteCond %{HTTP...

(.NET) ServicePoint.IPEndPointDelegate doesn't callback with proxy?

I need to bind the local ip address for an HttpWebRequest (machine has multiple ips). I create the delegate method, and this is called and the ip is bound for requests without a proxy, but once i add proxy details to the request, the callback never occurs How can i bind the outgoing ip address for HttpWebRequests that use a proxy? ...

How to block all connection in squid

How do I block all connections from clients to any website? I have had the client computers to use my linux machine with squid installed as a proxy server. I am new to squid and I have installed it in my linux box. I wanted to see if it is really working. How should I configure squid.conf to block all client request to the proxy. If I c...

google app engine proxy workaround

I am trying to build a google app engine app in Java. The app is trying to get information from another site. On my computer I am behind a firewall and need to connect to the site through a proxy. Google app engine does not allow the use of java.net.proxy. Is there a way to configure eclipse so it knows that when I use URL.getContent...

Is there a spring lazy proxy factory in Spring?

Wicket has this device called a lazy proxy factory. Given: <property name="foo" ref="beanx"/> the idea is to auto-generate a proxy in place of 'beanx', and then only initialize beanx if and when something actually calls a method on it. It seems as if this might be a core Spring capability. Is it there somewhere? ...

How to use PHP to connect to a proxy server?

Hi, I need to use PHP to connect to a URL via a proxy server. I will be grateful if you could point me in the right direction. Thank you. ...

Send User-Agent through CONNECT and POST with WinHTTP?

I'm trying to POST to a secure site using WinHttp, and running into a problem where the User-Agent header isn't being sent along with the CONNECT. I am using a lightly-modified code sample from MSDN: HINTERNET hHttpSession = NULL; HINTERNET hConnect = NULL; HINTERNET hRequest = NULL; WINHTTP_AUTOPROXY_OPTIONS AutoPr...

.net question - where are the DefaultCredentials stored/accessed from for a WinForms v3.5 app?

Hi, Where are the DefaultCredentials stored/accessed from for a WinForms v3.5 app? That is if I am using the settings for defaultProxy for my Winforms v3.5 application, and set a proxy server address here, exactly where does/can the username/password come from? Or in other words where does the framework source the "default credentials...

Need Java https proxy which can be enhanced to emulate production https proxy behaviour

I have a production environment which require access through a proxy server. Occasionally said server returns blank responses badly confusing the Metro web service library causing all kinds of interesting RuntimeExceptions. I believe the proxy is Squid. In order to handle these better, I would like to set up a similar scenario here wi...

Using a second backend with Varnish 1.0.3-2 in case of 404 from first backend

Hi there, We used to have a caching proxy setup using a very early version of Varnish (0.5ish, I think) which used the 'restart' action to send requests to a second backend in the case of a 404 on the first. The new version of Varnish doesn't seem to support this - the 'restart' action no longer seems to be supported, and the 'req.rest...

when using "default proxy" where does the username/password come from?

Hi, The "WebClient" class (and ClickOnce also) can use default proxy settings (e.g. put in application.config), however: Where does the username / password come from? (I can't see a setting in the XML config - see below). Can the application be configured to manual prompt the user for the username/password http://msdn.microsoft.co...