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...
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...
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...
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?
...
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...
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...
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.
...
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?
...
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...
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(...
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)
...
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 ...
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 ...
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...
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?
...
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:
...
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.
...
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...
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...
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...