Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: HTTP::Request::Common : Specify POST fields separators ?

by merlyn (Sage)
on Jan 04, 2010 at 04:27 UTC ( #815511=note: print w/ replies, xml ) Need Help??


in reply to HTTP::Request::Common : Specify POST fields separators ?

If that server expects that, it's not really looking for HTTP form data. You'll have to construct a body manually.

-- Randal L. Schwartz, Perl hacker

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.


Comment on Re: HTTP::Request::Common : Specify POST fields separators ?
Re^2: HTTP::Request::Common : Specify POST fields separators ?
by odrevet (Acolyte) on Jan 04, 2010 at 14:26 UTC
    I understand, but the separator is still & and not \r\n

      So, generate your own request body, as you were told. What you want is not HTTP, even if it nearly looks the same and you will probably be able to abuse HTTP tools to generate your custom request. You could start by generating a standard HTTP request, storing that into a variable, replace all "&" inside the body with newlines, and then sending that modified request over the wire. The very first reply looks like a good start point.

      Alexander

      --
      Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://815511]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2014-12-26 03:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (165 votes), past polls