Bug with POST in libwww-perl??

Sundaram, Aurobindo (sundaram@austin.apc.slb.com)
Fri, 5 Feb 1999 09:31:10 -0600


Hi,

I'm using lwp-request version 1.26 (libwww-perl-5.07). I use the interface to 
talk to a script (y.cgi) that simply uses cgi-lib.pl to parse the input it 
receives, and print it back to the caller. However, when I give any input with
a semicolon in it, the output is chopped _at_ the semicolon. No, I'm not
doing any filtering.

Any clues? Sorry if this has already been asked and answered. Is this a problem
with cgi-lib instead?

Thanks in advance, please reply to me as well as the list if appropriate.
Robin.

sundaram@snoopy 27 /usr/local/perl/bin/> ./POST -x http://www.austin.apc.slb.com/~sundaram/y.cgi
LWP::UserAgent::new: ()
Please enter content (application/x-www-form-urlencoded) to be POSTed:
username=wert;12
LWP::UserAgent::request: ()
LWP::UserAgent::simple_request: POST http://www.austin.apc.slb.com/~sundaram/y.cgi
LWP::UserAgent::_need_proxy: (http://www.austin.apc.slb.com/~sundaram/y.cgi)
LWP::UserAgent::_need_proxy: Not proxied
LWP::Protocol::http::request: ()
LWP::Socket::new: Socket GLOB(0x2b6630)
LWP::Socket::connect: (www.austin.apc.slb.com, 80)
LWP::Socket::_getaddress: resolving host 'www.austin.apc.slb.com'...
LWP::Socket::_getaddress:    ...163.185.74.146
LWP::Socket::connect: Connecting to host 'www.austin.apc.slb.com' on port '80'...
LWP::Socket::write: ()
LWP::IO::write: Write 163 bytes: 'POST /~sundaram/y.cgi HTTP/1.0
Host: www.austin.apc.slb.com
User-Agent: lwp-request/1.26
Content-Length: 17
Content-Type: application/x-www-form-urlencoded

'
LWP::Socket::write: ()
LWP::IO::write: Write 17 bytes: 'username=wert;12
'
LWP::Protocol::http::request: reading response
LWP::Socket::read: (...)
LWP::IO::read: Read 115 bytes
LWP::IO::read: HTTP/1.1 200 OK
*snip*
Date: Fri, 05 Feb 1999 15:25:48 GMT
Content-type: text/html

LWP::Protocol::http::request: HTTP/1.1 200 OK
LWP::Protocol::http::__ANON__: Collecting
LWP::Socket::read: (...)
LWP::IO::read: Read 29 bytes
LWP::IO::read: Hello there, I received wert
LWP::Protocol::collect: read 29 bytes
LWP::Protocol::http::__ANON__: Collecting
LWP::Socket::read: (...)
LWP::IO::read: Read 0 bytes
LWP::UserAgent::request: Simple result: OK
Hello there, I received wert