urllib2 web auth issues!!

Discussion in 'Python' started by scripteaze@gmail.com, Oct 24, 2007.

  1. Guest

    import urllib2

    # Create an OpenerDirector with support for Basic HTTP
    Authentication...
    auth_handler = urllib2.HTTPBasicAuthHandler()
    auth_handler.add_password('realm', 'https://www.somesite.com/
    loginform.ws?mod=ticketing', 'myid', 'passwd')
    opener = urllib2.build_opener(auth_handler)
    # install it globally so it can be used with urlopen.
    urllib2.install_opener(opener)
    urllib2.urlopen('???????????????')

    After i login, that page it brings me to looks like this:

    'https://ticketing.somesite.com/i=3729336821930248510/inbox.ws'

    where 3729336821930248510 is always different. i need a way to let me
    know tha login was successful
    , Oct 24, 2007
    #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. =?Utf-8?B?Q2hyaXMgTW9oYW4=?=

    Configuring Windows Auth & Forms Auth in Asp.Net

    =?Utf-8?B?Q2hyaXMgTW9oYW4=?=, Apr 28, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    662
    =?Utf-8?B?Q2hyaXMgTW9oYW4=?=
    Apr 28, 2004
  2. =?Utf-8?B?ZGhucml2ZXJzaWRl?=

    Windows Auth, but Forms Auth for one page?

    =?Utf-8?B?ZGhucml2ZXJzaWRl?=, Jan 8, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    509
    Elton Wang
    Jan 8, 2005
  3. Mark Chai
    Replies:
    1
    Views:
    721
    Christophe Vanfleteren
    Oct 1, 2003
  4. Chris Mohan

    Configuring Windows Auth & Forms Auth in Asp.Net

    Chris Mohan, Apr 28, 2004, in forum: ASP .Net Security
    Replies:
    2
    Views:
    372
    Chris Mohan
    Apr 29, 2004
  5. Forms Auth Info passed to Windows Auth?

    , Apr 28, 2005, in forum: ASP .Net Security
    Replies:
    1
    Views:
    186
    Hernan de Lahitte
    May 3, 2005
Loading...

Share This Page