Python proxy support for HtmlUnit thru Remote Server

98 views
Skip to first unread message

dkh...@gmail.com

unread,
Jun 4, 2009, 2:18:14 PM6/4/09
to webdriver
Hi There,

I have a quick question for the group:

I've just started using the python web bindings with the latest svn
checkout from googlecode, all tests are passing and everything is
working great :-)

The problem is that I've just downloaded and run the remote server to
allow me to use htmlunit from Python, however I'm behind a proxy here
at work and I can't figure out how to setup the proxy for htmlunit
thru the python remote connector ?

I see from the bottom of this post that's it's possible in java using
setProxy, however when I checked the python code for the
remote_connector this method does not exist :-(

http://groups.google.com/group/webdriver/browse_thread/thread/71e41e35ecc2b15/21211f7a4b17e517

Anybody have an idea as to how to configure a proxy from htmlunit thru
Python ?

Many thanks for any help that anyone can give me on this...

Take care,

Derek

Simon Stewart

unread,
Jun 8, 2009, 5:14:05 AM6/8/09
to webd...@googlegroups.com
Hi Derek,

I've not tried it, but you might want to start the remote server with
the "http.proxyHost" and http.proxyPort" settings:

java -Dhttp.proxyHost=host -Dhttp.proxyPort=8080 -jar RemoteServer.jar

There are matching settings for https.

Regards,

Simon
Reply all
Reply to author
Forward
0 new messages