LWP does everything I need it to do (and more), and it is my current module of choice for making web service requests.
However, I have gotten to thinking that maybe it's doing more than I need for the fairly strict and well-defined task of the web service requests and responses I'm implementing. I am probably suffering from the 'premature optimization' that Ben mentioned; however, you can see my use case in my previous email: PW> The requests are going to be in the form of POST requests using PW> structured URLs with an optional POST body payload, the responses will PW> be JSON. I feel like that's simple enough to warrant a barebones module. PW> That being said, I should probably write a simple socket module and do PW> some tests to compare it to LWP to confirm that LWP has as much overhead PW> as I think it does. In any case, I need to do some speed testing before I go and write something new. I did come across HTTP::Lite, which seems to be in line with my thinking, but it doesn't support SSL, which I require. http://search.cpan.org/~adamk/HTTP-Lite-2.3/lib/HTTP/Lite.pm > -----Original Message----- > From: boston-pm-bounces+pwood=christianbook....@mail.pm.org > [mailto:boston-pm-bounces+pwood=christianbook....@mail.pm.org] On Behalf > Of Conor Walsh > Sent: Wednesday, February 16, 2011 4:20 PM > To: Duane Bronson > Cc: boston-pm@mail.pm.org; Uri Guttman > Subject: Re: [Boston.pm] Lightweight module for web service calls? > > On 2/16/2011 1:14 PM, Duane Bronson wrote: > > Peter, > > Interesting that the question "how do I do X" has no answer except > "don't do > > X". Engineers prefer to give flawless answers to flawless questions and > > when the questions sound flawed, all hell breaks lose. So, perhaps it > would > > be helpful if you gave us some rationale behind the need to have a > > lightweight LWP with maybe some example code showing how LWP doesn't do > what > > you would like. > > I suspect that Ben and Uri are channeling Joel Spolsky a little. I'm > not convinced they're right, but I'll admit I'm curious about Peter's > use case too. > > http://www.joelonsoftware.com/articles/fog0000000069.html > > -Conor > > > > _______________________________________________ > Boston-pm mailing list > Boston-pm@mail.pm.org > http://mail.pm.org/mailman/listinfo/boston-pm _______________________________________________ Boston-pm mailing list Boston-pm@mail.pm.org http://mail.pm.org/mailman/listinfo/boston-pm