win32com with basic authentication

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • jeff

    win32com with basic authentication

    does anyone can help me with following situation.
    I use win32com.client to dispatch IE for a URL
    browing.
    However, the URL I am going require a HTTP basic
    authentication login.
    When IE starts to brow,the Login window pop up.
    I was trying to enter the right password for it, but
    IE wouldn't take it. it just keep poping up login
    window. How do I write auto login method to send
    user/password with COM method to bypass pop window for
    login.
    Or you might also help me how to dispatch for Netscape
    browser. How do I dispatch it with a opening brower?
    I know how to do it for IE, but don't know how to get
    Info for netscape.


    thanks for help.


    Jeff




    -----------------------------------------------------------------
    ¨C¤Ñ³£ Yahoo!©_¼¯
    ®üªºÃC¦â¡B­·ªº® ð®§¡B·R§Aªº·Å«× ¡AºÉ¦b«H¯È©³¹Ï


  • John J. Lee

    #2
    Re: win32com with basic authentication

    jeff <j557302@yahoo. com.tw> writes:
    [...][color=blue]
    > I use win32com.client to dispatch IE for a URL
    > browing.[/color]
    [...][color=blue]
    > When IE starts to brow,the Login window pop up.
    > I was trying to enter the right password for it, but
    > IE wouldn't take it. it just keep poping up login
    > window. How do I write auto login method to send
    > user/password with COM method to bypass pop window for
    > login.[/color]

    This is a question for the microsoft.* newsgroups.

    [color=blue]
    > Or you might also help me how to dispatch for Netscape
    > browser. How do I dispatch it with a opening brower?
    > I know how to do it for IE, but don't know how to get
    > Info for netscape.[/color]

    Netscape... does that exist any more (serious question)? As for
    Mozilla, try PyXPCOM. Or DCOP and Konqueror (or possibly, you might
    be able to write a plugin for Konqueror using PyKDE now, not sure).
    I've never tried either, and they might be a pain to get built and
    working.


    John

    Comment

    • Roger Upole

      #3
      Re: win32com with basic authentication

      For most sites, you can embed the username and password into the url like
      this:
      http://username:password@www.sitename.com
      hth
      Roger

      "jeff" <j557302@yahoo. com.tw> wrote in message
      news:mailman.75 4.1068900153.70 2.python-list@python.org ...[color=blue]
      > does anyone can help me with following situation.
      > I use win32com.client to dispatch IE for a URL
      > browing.
      > However, the URL I am going require a HTTP basic
      > authentication login.
      > When IE starts to brow,the Login window pop up.
      > I was trying to enter the right password for it, but
      > IE wouldn't take it. it just keep poping up login
      > window. How do I write auto login method to send
      > user/password with COM method to bypass pop window for
      > login.
      > Or you might also help me how to dispatch for Netscape
      > browser. How do I dispatch it with a opening brower?
      > I know how to do it for IE, but don't know how to get
      > Info for netscape.
      >
      >
      > thanks for help.
      >
      >
      > Jeff
      >
      >
      >
      >
      > -----------------------------------------------------------------
      > ¨C¤Ñ³£ Yahoo!©_¼¯
      > ®üªºÃC¦â¡B­·ªº® ð®§¡B·R§Aªº·Å«× ¡AºÉ¦b«H¯È©³¹Ï
      > http://tw.promo.yahoo.com/mail_premium/stationery.html
      >[/color]


      Comment

      • Michel Claveau/Hamster

        #4
        Re: win32com with basic authentication

        Hi !

        Search "ClientForm ". This can help you.
        "Auto-it" is another solution.

        @-salutations
        --
        Michel Claveau


        Comment

        • John J. Lee

          #5
          Re: win32com with basic authentication

          "Michel Claveau/Hamster" <No.Spam.mc@No. Spam.mclaveau.N o.Spam.com> writes:
          [color=blue]
          > Hi !
          >
          > Search "ClientForm ". This can help you.[/color]
          [...]

          You (jeff) need basic HTTP auth too, which is urllib2's job.

          If you use urllib2, the library docs for authentication are a bit
          lacking ATM, so see the examples here:




          If you use them, *please* leave a comment to indicate whether the docs
          there are OK.


          John

          Comment

          Working...