Click here to get back home

LWP::UserAgent and HTTP_ACCEPT

 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
LWP::UserAgent and HTTP_ACCEPT John Bokma 01-24-2006
Posted by John Bokma on January 24, 2006, 7:03 pm
Please log in for more thread options


I want to accept only certain mime types with LWP::UserAgent. What is the
most failsafe way to do this? I doubt that sending an accept header is
100% safe, so I was thinking about setting up a callback which checks the
content-type(s) and dies if none is acceptable (probably in combination
with setting the HTTP_ACCEPT header beforehand).

Has anyone done this before, and is this a good way to do this?

--
John Small Perl scripts: http://johnbokma.com/perl/
Perl programmer available: http://castleamber.com/
I ploink googlegroups.com :-)


Similar ThreadsPosted
Not able to use LWP::UserAgent::Authenticated December 26, 2005, 9:11 pm
LWP:Simple/LWP:UserAgent (newbie) February 24, 2005, 12:11 pm
A pipe or FH equivalent of LWP::UserAgent ? February 25, 2005, 3:12 pm
URGENT: no response - LWP::UserAgent February 26, 2005, 12:22 pm
Using HTTPS with LWP::UserAgent = Bad Service March 30, 2005, 6:45 am
installing LWP::UserAgent on windows June 21, 2005, 10:37 pm
newbie LWP::UserAgent questions August 13, 2006, 8:10 pm
CGI & LWP::UserAgent - forwarding cookies - how? January 15, 2007, 3:25 pm
LWP::UserAgent hangs up infinitively February 26, 2007, 9:05 am
LWP::UserAgent credentials netloc and realm May 27, 2005, 6:56 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap