We've been working on a perl program for quite some time now to supply requests to a remote SSL server.
We gave up trying to use the HTTP::Request::Common qw(POST) module POST function because our requests would always be rejected.
We have since used the HTTP::Request->new(POST => $URL) technique which at least seems to work.
Following our initial request and response cycle we have to url_encode an XML document and send it along with our request.
Where we are having a problem is with the content_length header parameter. If we leave it out we get NO error BUT we receive an Invalid Request Format error from the remote host.
If we calculate the length of our request with length($dataname) and use that as the content_length value we receive a run-time error that there was a problem with the parameter but LWP fixed it. However we still get the error from the remote host.
Can anyone please shed some light on the best way to handle this? Or suggestions as to how we can circumvent this error?
Thanks a million.
Bob -- +----------------------------------------+ |Bob Mariotti | Financial DataCorp | |Exec V.P. | 703 Hebron Avenue | |(860) 657-8983 | Glastonbury, CT 06033 | |email: [EMAIL PROTECTED] | +----------------------------------------+
_______________________________________________ Boston-pm mailing list [EMAIL PROTECTED] http://mail.pm.org/mailman/listinfo/boston-pm

