proxy

unit test for proxy checking

Proxy configuration of a machine can be easily fetched using def check_proxy(): import urllib2 http_proxy = urllib2.getproxies().get('http') I need to write a test for the above written function. In order to do that I need to:- Set the system-wide proxy to an invalid URL during the test(sounds like a bad idea). Suppl...

Is it possible to connect to a site through a proxy and then disconnect in the same session?

I was wondering if it is possible to log into a site with the normal login form (take facebook for example) through a proxy server. Once logged in, can a person disconnect from the proxy and use their normal ISP connection to access the members area on the site without logging in again? Thanks! ...

.NET - Is it possible to proxy a HTTPS request using HttpListener & HttpWebRequest? (or is it not possbile due to the encryption?)

Hi, Question - Is it possible to proxy a HTTPS request using HttpListener & HttpWebRequest? (or is it not possbile due to the encryption?) I have got a .NET proxy working by using HttpListener & HttpWebRequest using the approach here. I'm trying to extend this at the moment to listen for HTTPS too (refer this question) however I'm won...

C# Proxy using Sockets, how should I do this?

I'm writing a proxy using .NET and C#. I haven't done much Socket programming, and I am not sure the best way to go about it. What would be the best way to implement this? Should I use Synchronous Sockets, Asynchronous sockets? Please help! It must... Accept Connections from the client on two different ports, and be able t...

Post request with body_stream and parameters

Hello, I'm building some kind of proxy. When I call some url in a rack application, I forward that request to an other url. The request I forward is a POST with a file and some parameters. I want to add more parameters. But the file can be quite big. So I send it with Net::HTTP#body_stream instead of Net::HTTP#body. I get my request a...

Creating an http proxy

This might be a beginner question but I did some googling and couldn't find an answer so bear with me. I was wondering if there was a resource, tutorial, wiki, etc that explained how to create an http proxy. It would be good to see it in ruby but any language will do if that's not possible. Thanks a lot ...

How to change proxy settings while using Watin?

Hi, I am using Watin mostly to automate thing I do by hand. Sometimes, I need to change proxy. To do this, I have to set up IE to use a local proxy all the time (listens locally and forwards to a remote porxy), and then by hand change the settings of that program each time I need to use another proxy. This is not an elegant solution! ...

How to change url field of Web Proxy portlet dynamically

Hello, I'm using Liferay 5.2 portal. I have 2 Web Proxy portlet in my portal. Web Proxy portlet 1 contains navigation items & Web Proxy portlet 2 contains content. When user click an item in portlet 1 then the content in portlet 2 will change, it also mean that the url for portlet 2 changes. How can I do that? Or is there any other way...

How to setup HTTP proxy settings in PHP?

I am trying to write a program in PHP which I had already written in Java. I had used the following statements to setup proxy in Java System.setProperty("http.proxyHost",proxyhost); System.setProperty("http.proxyPort",proxyport); How do I do the same for PHP? ...

Java.lang.reflext.Proxy returning another proxy from invocation results in ClassCastException on assignment

So I'm playing with geotools and I thought I'd proxy one of their data-access classes and trace how it was being used in their code. I coded up a dynamic proxy and wrapped a FeatureSource (interface) in it and off it went happily. Then I wanted to look at some of the transitive objects returned by the featureSource as well, since the ma...

Sending email through proxy using gmail smtp

Hello everyone, Trying to send some email in my C# app. I am behind a proxy - which is no doubt why the code isn't working. This is what I have so far: App.Config: <system.net> <defaultProxy enabled="false"> <proxy proxyaddress="xxx.xxx.xxx.xxx"/> </defaultProxy> <mailSettings> <smtp deliveryMethod="Network"> ...

How to ignore windows proxy settings with python urllib?

I want Python to ignore Windows proxy settings when using urllib. The only way I managed to do that was disabling all proxy settings on Internet Explorer. Is there any programmatic way? os.environ['no_proxy'] is not a good option, since I'd like to avoid proxy for all addresses. ...

Python, implementing proxy support for a socket based application (not urllib2)

Hey guys, I am little stumped: I have a simple messenger client program (pure python, sockets), and I wanted to add proxy support (http/s, socks), however I am a little confused on how to go about it. I am assuming that the connection on the socket level will be done to the proxy server, at which point the headers should contain a CONNE...

How to know the line of a bug in a spring generated bean ?

Hello, I've got a website build with Spring and jpa (by hibernate). I've got a bug and I don't know how to identify the line where the bug appears. I can't debug it on my ide because it's a live version (all runs fine in local). I've got log which says: o rg.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveM...

How can I call VC# webservice methods without ArgumentException?

Currently, I'm trying to write a small tray application that will show the status and provide control of a server-side application exposed over webservice. The webservice only has 3 operations: start, stop and status. When I call any of these operations in code, they throw an ArgumentException citing "An item with the same key has alread...

Does anyone have experience simultaneously running a Drupal and Wordpress site and redirecting some links from Drupal to Wordpress

This is a really weird question and I apologize: I've been asked if it's possible not to import our blog from Wordpress to Drupal but just keep it in Wordpress as an archive and re-direct our users say from hostname/blog/... to hostname/wordpress/... when a URL matches the Wordpress URL pattern. I've never heard of anyone trying this a...

Disable proxy for entire application?

Ever since upgrading to Visual Studio 2010, I'm running into an issue where the first web request of any type (WebRequest, WebClient, etc.) hangs for about 20 seconds before completing. Subsequent calls work quickly. I've narrowed down the problem to a proxy issue. If I manually disable proxy settings, I don't experience this delay: Di...

how to login in google account with app engine webproxy

hi,a webproxy on app engine oncyberspace.appspot.com , save cookie in the database, when i try to login in the google with my account, it redirect to google.com . how to solve these problem ? and another problem , when i this the above web to login in twitter,it works !but i can not use it to update my tweet. i don't know why, may be i c...

How cookies are handled if you use a proxy between a client and server in HTTP

How cookies are handled if you use a proxy between a client and server in HTTP ...

How cookies are handled if you use a proxy between a client and server in HTTP

How cookies are handled if you use a proxy between a client and server in HTTP ...