Don't ask to ask, just ask | |
PerlMonks |
Anything wrong with the LWP PUT codeby chanakya (Friar) |
on Sep 16, 2010 at 18:37 UTC ( [id://860382]=perlquestion: print w/replies, xml ) | Need Help?? |
chanakya has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks I have been developing the Perl script to handle PUT requests. The script reads the incoming CURL requests which has binary data and raises a PUT request to a specified url (http://xxxx/testput/PPut/). I'm able to send the headers and the binary data to the PUT url, but have noticed an issue with the final file written. . If the client has sent abc.gz, then the final file written is PPut.gz, instead of abc.gz. I have checked the content of Put.gz has the same content of abc.gz. Is there anything wrong I'm doing in the code. Below is the curl requests which are used for testing and the Perl code (handleput.cgi) that forwards the curl request to the url specified. Do I need to add the filename from $ENV{'PATH_INFO'} to the PPut url, so the final created will be abc.gz instead of PPut.gz ?
Back to
Seekers of Perl Wisdom
|
|