Click here to get back home

HTTPS Posts seem to be lacking the content (libwww-perl)

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
HTTPS Posts seem to be lacking the content (libwww-perl) James Steele 01-03-2006
Get Chitika Premium
Posted by James Steele on January 3, 2006, 6:56 pm
Please log in for more thread options


I was recently attempting to use a script to automate doing some tasks,
over a HTTPS connection (which used session cookie authentication).
However I couldn't see the content (i.e. my username and password) get
posted in the request for logging in.

I had a bit of a dig around the code and it looks like in
LWP/Protocol/http.pm looked like it needed the content passing to the
format_request function from Net/HTTP/Modules.pm (as the @h header array
should be even if it only contains headers names+values, if it is odd it
makes sense that the final element is the "content").
So from my limited understanding of perl, the following line should be
added (in http.pm) as such
<snip>
}
+ push @h, $$content_ref;

my $req_buf = $socket->format_request($method, $fullpath, @h);
<snip>

However this is on version 1.68, and having a look at the head of the
CVS tree (1.70 I believe) it appears that in come cases the content is
now concatenated (under certain conditions) to the request later on.
Although this would seem to contradict the API provided in Modules.pm.

Anyway, I thought I would just point it out what I found (just in case),
and if I'm barking up the wrong tree someone will hopefully show me the
error of my ways :)

Cheers,
James


Similar ThreadsPosted
How can I make HTTP::Request handle gzipped content? September 3, 2004, 2:11 am
finding the most relevant keywords or phrases of a content using a perl program September 21, 2005, 7:10 am
mod_perl, LWP and HTTPS January 11, 2005, 7:35 pm
LWP, https and a proxy February 22, 2005, 7:43 am
Using HTTPS with LWP::UserAgent = Bad Service March 30, 2005, 6:45 am
HTTPS URLs monitoring October 10, 2008, 2:20 pm
LWP::UserAgent + HTTPS + threads ==> segmentation fault November 11, 2004, 9:57 pm
What module is needed to allow scripts to post to HTTPS sites? August 2, 2006, 8:06 am
Proxy method does not work using LWP::UserAgent for HTTPS request September 9, 2008, 6:53 am
http, library loaded, httpS library can't be found November 8, 2004, 9:51 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap