Don't ask to ask, just ask | |
PerlMonks |
Re: Difference between LWP::UserAgent and AnyEvent::HTTPby sectokia (Pilgrim) |
on Sep 06, 2021 at 04:03 UTC ( [id://11136491]=note: print w/replies, xml ) | Need Help?? |
After doing packet capture, I determined that AnyEvent::HTTP is sending the header 'X-AcceptDeltaUpdates' as 'X-acceptdeltaupdates', which the server ignores. LWP useragent retains the case you feed it. I believe in general the problem is that AnyEvent::HTTP should not be applying the line $hdr{lc $k} = $v to headers that start with "X-"? Anyone know HTTP spec says about this?
In Section
Seekers of Perl Wisdom
|
|