Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^3: Content-Length for HTTP Header.

by clinton (Priest)
on Aug 27, 2007 at 15:33 UTC ( [id://635320]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Content-Length for HTTP Header.
in thread Content-Length for HTTP Header.

I've never used Net::SSLeay, but the docs say that the Content-Length and Content-Type headers are added automatically by post_https(). So if I remove your Content-Length header, the above script gives me:

<?xml version="1.0" encoding="UTF-8"?> <Response> <QuickResponse HcsTcsInd="T" Version="2"> <ProcStatus>20412</ProcStatus> <StatusMsg StatusMsgLth="52">Precondition Failed: Security Informa +tion is missing</StatusMsg> </QuickResponse> </Response>

The Content-length: 239 that you were seeing is the length of THEIR response, not your request. I think that Content-Length isn't the problem here - the problem is that you're not providing authorization details perhaps?

Clint

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (3)
As of 2024-04-25 23:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found