Re: How to open https Site and pass request?

2006-05-24 Thread Nico Grubert
That depends on your OS. In Windows, I believe you would have to recompile Python from source. On Linux, you could probably just get a package. From Debian, I know that it's python-ssl. I'm sure most the others would have one as well. Hi Jerry, thank you for your reply. I use Linux and

How to open https Site and pass request?

2006-05-23 Thread Nico Grubert
Hi there, I am trying to open an https site and pass a request to it in order to simulate the submit of an HTML form on a https site that sets an authentication cookie for a tomcat application, so the the URL I am trying to open points to a web form provided by the tomcat webserver. I tried

Re: How to open https Site and pass request?

2006-05-23 Thread Nico Grubert
import urllib import urllib2 the_url = https://myserver/application/login.do; user_agent = 'Mozilla/4.0 (compatible; MSIE 5.5; Windows NT)' headers = { 'User-Agent' : user_agent } values = { 'username' : 'myuser', 'password' : 'mypasswd' } data = urllib.urlencode(values)

Re: How to open https Site and pass request?

2006-05-23 Thread Jerry
That depends on your OS. In Windows, I believe you would have to recompile Python from source. On Linux, you could probably just get a package. From Debian, I know that it's python-ssl. I'm sure most the others would have one as well. -- Jerry --