Vote count:
0
ok here is my code , what I am trying to do is post to a page that is password protected can you have a look at the code below at see where I am going wrong getting
import requests, sys, socket, json from requests.auth import HTTPDigestAuth ,HTTPBasicAuth
params = {'@Generate': 'New'} response = requests.post('http://ift.tt/1BeUUmn', auth=HTTPDigestAuth('user', 'fakepassword'), data=params) print response.status_code
asked 39 secs ago
python post with auth
Aucun commentaire:
Enregistrer un commentaire