in reply to Re^2: How to authenticate and upload file to a secured server
in thread How to authenticate and upload file to a secured server
If it uses Basic Authentication, you'll need to call $ua->credentials, or create and use a subclass of LWP::UserAgent that overrides get_basic_credentials.
By definition, if Basic Authentication was used, you'd get a 401 response including a "WWW-Authenticate: Basic realm="..."" header. Your site either doesn't use Basic Authentication, or you're not accessing the right page.
Basic Authentication doesn't have any domain component. Just realm, user and password. Realm is set by the server and is not editable. I've seen the dialog to which you refer in the past, and it's not Basic Authentication. I don't know what it is.
Look at the headers in your trace. You never got any cookie. That's why the file is empty. Basic Authentication doesn't use cookies anyway.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: How to authenticate and upload file to a secured server
by KarthikK (Sexton) on Oct 19, 2007 at 07:46 UTC |