|Think about Loose Coupling|
How can I stop a POST from url encoding.by dwatson06 (Friar)
|on Jun 28, 2002 at 21:13 UTC ( #178148=perlquestion: print w/replies, xml )||Need Help??|
dwatson06 has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to create a POST to a CGI script on another server. I am connecting to the server but it can not route the POST because it thinks that 'create_user.cgi' is 'create_user.cgi%20HTTP/1.0'. Also the content is getting url encoded <user>john@doe</user> as %3Cuser%3john%4doe%3enduser%3. I have tried using apostrophe over double quotes, the /, /s, etc... HTTP/1.0 must be passed to the server. Is there a way to force characters in?
$req = POST 'http://asite.com:4443/adir/create_user.cgi HTTP/1.0' , '<user>john@doe<enduser>' ;
Originally posted as a Categorized Question.
Back to Seekers of Perl Wisdom