Https Form Page

Tim Roberts timr at probo.com
Sun Apr 10 02:05:09 EDT 2005


Hasan D <python.tr at gmail.com> 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 do about this ?
>
>import urlparse,urllib,httplib,string,htmllib,formatter
>
>#port="443"
>target="https://www.abc.com/"
>params = urllib.urlencode({'spam': 1, 'eggs': 2, 'bacon': 0})
>http=httplib.HTTP("https://www.abc.com/",443)

If you want https, you should use the HTTPS class.

  http = httplib.HTTPS("https://www.abc.com/",443)

Or, even better, the HTTPSConnection class.

  http://www.noah.org/python/https/
-- 
- Tim Roberts, timr at probo.com
  Providenza & Boekelheide, Inc.



More information about the Python-list mailing list