Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re^4: Should LWP warn about wrong Content-Length? (it does)

by vsespb (Chaplain)
on May 30, 2013 at 09:06 UTC ( #1036010=note: print w/replies, xml ) Need Help??

in reply to Re^3: Should LWP warn about wrong Content-Length? (it does)
in thread Should LWP warn about wrong Content-Length?

warning seems like a clumsy way to communicate this
For request it's probably OK. Because wrong Content-Length in request is must be programmer mistake. But wrong Content-Length in response is something programmer cannot control.

For response there are existing ways to report problem, like: HTTP 500 with 'Client-Warning'=> 'Internal response' header. Or 'X-Died' header (without changing http response code, i.e. it can be 200 OK)

which version do you have
perl -MLWP -e 'print LWP->VERSION' 6.05

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1036010]
[stevieb]: I literally laughed. That's good :) Perhaps I just need to go climb another mountain and forget about it
shmem seeks a tate and smikes a pope
shmem .oO( Ca n'est pas un pipe )

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2017-03-28 22:18 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (342 votes). Check out past polls.