Ralesk has asked for the wisdom of the Perl Monks concerning the following question:
Fellow Monks,
I’ve been trying to find solutions to this on the internet, but Google doesn’t seem to be favouring me today.
We’ve been using LWP for some RPC access, but since it’s blocking, we’re looking into getting a non-blocking solution to work. Two modules come to my mind, HTTP::Async and AnyEvent::HTTP. We need something that works well inside a Glib loop.
What we need is a HTTPS-capable client that can authenticate (right now we use digest auth) with the server, get the thing it needs to get, and return me the contents of the result page somehow (callback, or me having to poll it — doesn’t matter as long as it does the whole TCP/TLS/HTTP mess in the background and stops my app from hiccuping every so often.
Unfortunately none of the modules mentioned come with auth support out of the box, and it doesn’t seem to be simple at all to hack it in.
Does anyone have an idea?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Asynchronous HTTP requests and (digest) authentication
by Corion (Patriarch) on Sep 11, 2012 at 12:07 UTC | |
|
Re: Asynchronous HTTP requests and (digest) authentication
by daxim (Curate) on Sep 11, 2012 at 12:07 UTC | |
by Ralesk (Pilgrim) on Sep 11, 2012 at 13:59 UTC | |
by zentara (Cardinal) on Sep 11, 2012 at 16:03 UTC | |
by Ralesk (Pilgrim) on Sep 11, 2012 at 16:30 UTC | |
by Ralesk (Pilgrim) on Sep 11, 2012 at 12:22 UTC | |
|
Re: Asynchronous HTTP requests and (digest) authentication
by Ralesk (Pilgrim) on Sep 21, 2012 at 15:18 UTC |