in reply to How to change content-length in CGI

This wouldn't be, perhaps, a Windows server, would it?

Check out binmode and see if it helps.

--MidLifeXis

  • Comment on Re: How to change content-length in CGI

Replies are listed 'Best First'.
Re^2: How to change content-length in CGI
by derby (Abbot) on Jan 05, 2009 at 15:17 UTC

    More than likely, the code setting the content length is getting hosed *because* there's a null in the data stream. I think LWP::Simple::Post is probably the wrong module to upload a file. You're probably better off using LWP::UserAgent directly.

    -derby