User Profile

Collapse

Profile Sidebar

Collapse
johnpollard
johnpollard
Last Activity: Oct 29 '08, 09:05 PM
Joined: Oct 29 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • johnpollard
    started a topic Help With Cookie Jar/Urllib To Log In

    Help With Cookie Jar/Urllib To Log In

    For some reason this script isn't working and I dont know what it is.
    I believe the problem lies in the following lines of code since the script works with a different website and username/password combination:

    resp = opener.open('ht tp://www.amm.com/login.asp')
    theurl = 'http://www.amm.com/login.asp'
    body={'username ':'AMMT54590570 ','password':'A MMT32 564288'}


    Code:
    #!/usr/bin/env python
    ...
    See more | Go to post

  • johnpollard
    replied to Help with cookies/authentication
    Your script works for me, but the one below for another site does not. The test.html file is not my logged in file like it is when I run your script.

    The only lines of code I changed are;
    resp = opener.open('ht tp://www.amm.com/')
    theurl = 'http://www.amm.com/login.asp'
    body={'username ':'AMMT54590570 ','password':'A MMT32564288'}

    What am I doing wrong?

    -----------------------------------...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...