python urllib2 data post over https

Discussion in 'Python' started by miamia, May 26, 2011.

  1. miamia

    miamia Guest

    hello, I am using this code to send data over https with post method:

    params='tieto data idu na sevrer\n'
    kamodoslat = "https://domena.tld/script.php"
    req = urllib2.Request(kamodoslat)
    req.add_header('User-Agent', 'agent')
    resp = urllib2.urlopen(req, params)

    how can I make sure that data were really sent over secured protocol
    https and all communcation went through https?
     
    miamia, May 26, 2011
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Kylotan

    urllib2 for HTTPS/SSL

    Kylotan, Jul 8, 2003, in forum: Python
    Replies:
    5
    Views:
    770
    Jeremy Hylton
    Jul 9, 2003
  2. Grant Edwards

    Why is ClientCookie/urllib2 using https?

    Grant Edwards, Sep 24, 2003, in forum: Python
    Replies:
    0
    Views:
    412
    Grant Edwards
    Sep 24, 2003
  3. news.easynet.be

    UrlLib2 Proxy and Https

    news.easynet.be, Dec 10, 2004, in forum: Python
    Replies:
    4
    Views:
    9,958
    Jacobo belbo
    Dec 13, 2004
  4. Fuzzyman

    urllib2, https, and proxies

    Fuzzyman, Jun 29, 2005, in forum: Python
    Replies:
    0
    Views:
    553
    Fuzzyman
    Jun 29, 2005
  5. Josef Cihal
    Replies:
    0
    Views:
    1,290
    Josef Cihal
    Sep 5, 2005
  6. Michele Simionato

    example of using urllib2 with https urls

    Michele Simionato, Oct 18, 2005, in forum: Python
    Replies:
    1
    Views:
    379
    Larry Bates
    Oct 18, 2005
  7. axel
    Replies:
    0
    Views:
    5,211
  8. brad
    Replies:
    4
    Views:
    299
Loading...