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. Advertising

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:
    582
    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:
    354
    Grant Edwards
    Sep 24, 2003
  3. Josef Cihal
    Replies:
    0
    Views:
    877
    Josef Cihal
    Sep 5, 2005
  4. axel
    Replies:
    0
    Views:
    5,065
  5. brad
    Replies:
    4
    Views:
    164
Loading...

Share This Page