Sham has asked for the wisdom of the Perl Monks concerning the following question:
but every time I m getting the HTTP/1.1 400 Bad Request error.Headers : POST /AUTHORIZE HTTP/1.0 MIME-Version: 1.0 Content-Type: application/PTI42 Content-length: 210 Content-transfer-encoding: text Request-number: 1 Document-type: Request Request : <?xml version="1.0" encoding="UTF-8"?> <Request> <NewOrder> <MessageType>A</MessageType> <BIN>000002</BIN> <TerminalID>001</TerminalID> <AVSzip>33408</AVSzip> </NewOrder> </Request>;
Here I want to mention that all the header fields except "POST /AUTHORIZE HTTP/1.0" are being prepared by Net::SSLeay's make_header method and I am concating "POST /AUTHORIZE HTTP/1.0" to them by using "\r\n". While searching I found that header fields are separated bu CRLF(carriage return and line feed). is it done by \r\n in perl?????
If anybody can tell me where should I concentrate so that I will overcome the problem. Docs says that this error corresponds to " 400 Invalid Request: The server, due to malformed syntax, could not understand the request. " Please advice. Thanks, Sham.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: HTTP/1.1 400 Bad Request
by oha (Friar) on Aug 29, 2007 at 12:51 UTC | |
by Sham (Novice) on Aug 29, 2007 at 15:24 UTC | |
|
Re: HTTP/1.1 400 Bad Request
by jhourcle (Prior) on Aug 29, 2007 at 12:52 UTC |