Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

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 ?
Replies are listed 'Best First'.
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.


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

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2016-02-13 18:49 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (442 votes), past polls