drewbie has asked for the wisdom of the Perl Monks concerning the following question:
I have a module which accesses a web server (RT) via an ATOM-based API. The server (not surprisingly) requires authentication for requests to be processed. BUT, I end up having 2x as many actual HTTP requests because the ATOM client makes the initial request, the server returns 401, the client makes a second request with the credentials, and then finally gets the response.
I'm wondering if there is a way to force LWP to send the Authorization header on the initial request to save the extra round trip. I know it sounds trivial, but a single run of the client can generate 50-100 HTTP requests for data from the server. The client is run hundreds of times per day (creating a new ticket), so those extra requests do add up. Is this possible or am I off my rocker?
Drew
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Forcing LWP authentication
by brian_d_foy (Abbot) on Oct 21, 2006 at 00:16 UTC | |
by drewbie (Chaplain) on Oct 23, 2006 at 13:45 UTC | |
|
Re: Forcing LWP authentication
by shmem (Chancellor) on Oct 20, 2006 at 23:22 UTC | |
|
Re: Forcing LWP authentication
by Khen1950fx (Canon) on Oct 20, 2006 at 23:50 UTC | |
|
Re: Forcing LWP authentication
by drewbie (Chaplain) on Oct 23, 2006 at 18:10 UTC |