|Think about Loose Coupling|
Can't get '+' character to appear in a POST request.by oldwarrior32 (Sexton)
|on Apr 22, 2013 at 22:39 UTC||Need Help??|
oldwarrior32 has asked for the
wisdom of the Perl Monks concerning the following question:
Hello Monks. I apologize to ask such simple question for you.
I have the following script section:
The problem is with the line 'show=>'Show+Report'. I made a packet capture using Wireshark, when I make a request from a webpage. In the packet capture I see the line 'Show+Report', as the parameter for the 'show' variable. However, when I simulate the request using the LWP::UserAgent module, and with the code above, I see the line changed: 'Show%2BReport'.
I want to send the '+' sign as is. I tried escaping with URI::Escape, but doesn't work
I tried with the uri_unescape function either with no luck
The change above gives me more hexadecimal characters
How do I escape the plus sign, inside a Post request using LWP::UserAgent?
Thanks for any help!