Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: automating basic authentication

by bsb (Priest)
on Sep 13, 2003 at 10:54 UTC ( [id://291236]=note: print w/replies, xml ) Need Help??


in reply to automating basic authentication

Disclaimer: I know nothing about HTTP::Proxy
Claimer: I know way too much about Basic Authentication (1)

I'm assuming url credentials like http://username:password@some.host/ aren't relevant.

LWP's GET -eSUd is a good debugging aid here. It'll show you the basic headers to compare to your own.

Another idea: put up your own server and watch the requests (or proxy your proxy to see what it's trying to do)

---
(1) I tried to write a module that would fallback to using the basic credentials as a pseudo-cookie if a client had cookies switched off. Many 401's and 30x's later I discovered that it wasn't practically possible if you want to support Mozilla and changing user(IE works though). "wasn't practically possible" is a big call, let's say I couldn't do it.

Replies are listed 'Best First'.
Re: Re: automating basic authentication
by cLive ;-) (Prior) on Sep 13, 2003 at 11:33 UTC

    The username/password combo is base64 encoded and sent as a line of the request header.

    I'm looking to intercept the request to add this authentication header. I just had the remove header in while playing around with it.

    I guess I just want to see a non trivial example of this module in action.

    .02

    cLive ;-)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://291236]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2024-04-25 10:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found