proxy

Errno socket error in python

i wrote this code : import random import sys import urllib openfile = open(sys.argv[1]).readlines() c = random.choice(openfile) i = 0 while i < 5: i=i+1 c = random.choice(openfile) proxies = {'http': c} opener = urllib.FancyURLopener(proxies).open("http://whatismyip.com.au/").read() ::: I put 3 proxy in a txt file . : http://211...

[iphone,twitter] Accessing the Twitter API through a proxy using NSURLConnectionsm, OAuth problem

I'm having no problems with sending an update directly via hxxps://api.twitter.com/, but the app (for the Iphone, I'm using NSURLConnections) I'm working is supposed to allow the user to select a preferred proxy (e.g. hxxps://twitter-proxy.appspot.com/api/ or hxxps://nest.onedd.net/api/), and I keep getting a 401 error (Failed to validat...

Setting WCF service for multiple client calls

I have made a WCF service which is defined like this: [ServiceBehavior(InstanceContextMode = InstanceContextMode.Single, ConcurrencyMode = ConcurrencyMode.Multiple)] binding is done using netTcpBinding. We support 50+ clients that call the server from time to time. Each client opens a channel using channelfactory once it is loaded a...

How do I Make Management Studio Express use proxy settings to connect to online SQL service

It doesn't seem like SQL Management Studio Express 2005 considers Internet Options proxy settings defined for the LAN when trying to connect to SQL Server 2005. Is there a way to make it use the proxy settings? ...

How to redirect a live data stream adding to it another header and returning it on demand? (PHP)

I have a url like http://localhost:8020/stream.flv On request to my php sctipt I want to return (be something like a proxy) all data I can get from that URL (so I mean my php code should get data from that url and give it to user) and my header and my beginning of file. So I have my header and some data I want to write in the beginning...

Java and proxy's

So i am testing a couple of API, and after sorting a couple of them, i am undecided between zemanta and opencalais. A can use both perfectly at home, but at the company behind the proxy, i can put them working, even when running the same examples. I am running this example http://philippeadjiman.com/blog/2009/09/16/open-calais-from-jav...

Download file from a regular site via proxy c#

I need to be able to download some file from a regular site using my proxy server, I already try this: System.Net.WebClient client = new System.Net.WebClient(); client.Proxy = new WebProxy(ip, port); client.DownloadFile(url); but it's not works at all, I don't know what I missed,(without a proxy it works) thanks, Dani. ...

How to enforce webkit to use system APN proxy in Android?

I'm trying to force Webkit to use proxy definde in APN. My proxy configuration: APN: wap PROXY: 192.168.6.102 PORT: 8080 USER: wap PASSWORD: wap` Currently all connections made by Webkit are blocked on firewall. Is there way to use proxy from phone profile? ...

httplib2 giving internal server error 500 with proxy

Following is the code and error it throws. It works fine without the proxy http = httplib2.Http() . When I try the same http proxy in Firefox, it works fine. Any pointers are highly appreciated! Usage : http = httplib2.Http(proxy_info = httplib2.ProxyInfo(socks.PROXY_TYPE_HTTP, '68.48.25.158', 25681)) main_url = 'http://www.mywebs...

Does httplib2 support http proxy at all? Socks proxy works but not http.

Here is my code. I cannot get any http proxy to work. Socks proxy (socks4/5) works fine though. Any ideas why? urllib2 works fine with proxies though. I am confused. Thanks.. Code : 1 import socks 2 import httplib2 3 import BeautifulSoup 4 5 httplib2.debuglevel=4 6 7 http = httplib2.Http(proxy_info = httplib2.ProxyInfo(...

is there a way using Ruby's net/http to post form data to an http proxy?

I have a basic Squid server setup and I am trying to use Ruby's Net::HTTP::Proxy class to send a POST of form data to a specified HTTP endpoint. I assumed I could do the following: Net::HTTP::Proxy(my_host, my_port).start(url.host) do |h| req = Net::HTTP::Post.new(url.path) req.form_data = { "xml" => xml } h.request(req) ...

Is is possible to intercept a static method on an object you don't own and did not create?

Referring to my possible answer to this question: http://stackoverflow.com/questions/2907535/how-would-you-audit-asp-net-membership-tables-while-recording-what-user-made-the/2911616#2911616 Is it possible to intercept a call, coming from code you do not own, to a ctor on a sealed internal class that you do not own with the intention of ...

Custom programmatic hooks for a proxy server

Is there any programmable/customizable Open Source Proxy server which allows me to do this: For certain pages which get an authentication page which always looks the same (it's custom, not the standard proxy authentication stuff) I can hook up a script which sends the login credentials (via POST). The reason is to work around a nasty ...

ngnix to proxy server B only if got 404 on server A

I'm trying to configure nginx (0.7.65) so it'll proxy to server A, and if it gets 404 will try to proxy to server B. I've tried the following, but it doesn't work. Any ideas? server { error_log /tmp/nginx.error.log; access_log /tmp/nginx.access.log; listen 4433; server_name localhost; location / { pr...

Using Tycho behind a proxy that requires authentication

I need to use the Tycho plug-in for Maven behind a firewall that requires authentication. The workaround here: https://issues.sonatype.org/browse/TYCHO-279 Nearly works, I just need a way of providing a username and password. Can anyone help? ...

Python urllib2 > HTTP Proxy > HTTPS request

This work fine: import urllib2 opener = urllib2.build_opener( urllib2.HTTPHandler(), urllib2.HTTPSHandler(), urllib2.ProxyHandler({'http': 'http://user:pass@proxy:3128'})) urllib2.install_opener(opener) print urllib2.urlopen('http://www.google.com').read() But, if http change to https: ...

How to set the tomcat to act as a proxy server?

Can i use Apache Tomcat to behave like a proxy server? I know there are other methods also, to create a proxy server [ using HTTP/Socks-5 , using google app engine, blah blah ] The answer can be simply, No . or if it is possible to create a proxy server using Tomcat then please let us know. ...

Dns caching for sockets

I'm connecting to some websites through socks proxy server. In my case its very good to implement dns cache, so proxy don't need to resolve website's ip address. So, I performed DNS lookup, but don't know where to supply IP address. mySocket.Connect uses proxy's ip address so it isn't right place. I tried to place it in http header GET h...

Why is search functionality not working on this page?

we deliver micro-site content for our client. Our content is injected into a wrapper that is supplied by another developer. To deliver our content we host the wrapper as well as the content. The user can access this at http://fundcentre.newireland.ie/ (try a search for 'bloxham') For the other content that is not ours, the other deve...

Bouncing an Apache http auth proxy request to another device

I've got a hardware internet radio player which needs to play a stream which is behind an http auth (standard 401 request). Unfortunately, the device can't cope with http auth, you can't build the username and password into the link (eg: username:password@http etc - and besides, the server won't accept that) and it plays streams by call...