It all really, really, really depends on your script processing the
form. My suggestion is to use the openssl s_client program, manually
submit your data, and see what your server is responding with.
-jag
<>Joshua Ginsberg -- [EMAIL PROTECTED]
Brainstorm Internet Network Operations
970-247-1442
Hasan D <[EMAIL PROTECTED]> wrote:
>
>I'm new on this httplib and urllib. Actually I dont know what should i use.
>
>I want to fill the form in a "https" page , and return the result . I
>write a test code but always gives errors. I cant find any good
>example about this on the net. What should I d
I cant figure out, always gives me the form page. Everything looks ok but ?
On Apr 9, 2005 2:07 AM, Joshua Ginsberg <[EMAIL PROTECTED]> wrote:
> If url is your formpage and your formdata is correct, it should work.
>
> Do you need to have a cookie set? Is it 304 redirecting you?
>
> -jag
>
>
Try:
import urllib2, urllib
formdata = urllib.urlencode({'a':1,'b':2})
request = urllib2.Request(url)
request.add_data(formdata)
opener = urllib2.build_opener(urllib2.HTTPSHandler())
urllib2.install_opener(opener)
fs = urllib2.urlopen(request)
https_response = fs.read()
https_headers = fs.info().he
I'm new on this httplib and urllib. Actually I dont know what should i use.
I want to fill the form in a "https" page , and return the result . I
write a test code but always gives errors. I cant find any good
example about this on the net. What should I do about this ?
import urlparse,urllib,ht