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?
DrewIn reply to Forcing LWP authentication by drewbie
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |