Skip Menu |

This queue is for tickets about the libwww-perl CPAN distribution.

Report information
The Basics
Id: 41258
Status: resolved
Priority: 0/
Queue: libwww-perl

Owner: Nobody in particular
Requestors: lulurun [...]

Bug Information
Severity: Normal
Broken in: 5.821
Fixed in: (no value)

Subject: SendTE is always "1"
Download (untitled) / with headers
text/plain 440b
in LWP/Protocol/, function _new_socket, $sock is always created with "SendTE => 1", This works with most of well-known web servers, but some http server do not supports "TE" parameter. So, this is breaking some of my usecases here. I suggest to add a argument $sock_opt to "request" function, $sock_opt = { SendTE => 1 or 0, OtherOpts => ..., }; and then pass $sock_opt to _new_sock. Do you think it is a good idea ? regards,
Download (untitled) / with headers
text/plain 451b
A problem with this is that it interacts in non-obvious ways with the persistent connection feature. Some kind of attribute on the UserAgent object itself might be easier to explain. Most often this is requested because users want to override the 'LocalAddr' binding of the socket. Currently you can override with something like: @LWP::Protocol::http::EXTRA_SOCK_OPTS = ( SendTE => 0, ); before you start sending requests.

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to