LWP::UserAgent and HTTP_ACCEPT
- From: John Bokma <john@xxxxxxxxxxxxxxx>
- Date: 25 Jan 2006 00:03:44 GMT
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 :-)
.
- Prev by Date: Sanity check: Date::Manip versus summer time
- Next by Date: Re: Ask for recommended module for precise number
- Previous by thread: Sanity check: Date::Manip versus summer time
- Next by thread: Which Perl modules to use
- Index(es):
Relevant Pages
|
|