bear0053 has asked for the wisdom of the Perl Monks concerning the following question:

What i am trying to do is send xml data to a url that possesses a self signed cert.
use Win32::OLE; my $xml = 'some xml date not important to problem'; my $SendObject = Win32::OLE->new('WinHttp.WinHttpRequest.5.1'); #this is a problem...this is suppose to ignore error flags $SendObject->SetProperty('Option', 4); $SendObject->open("POST", "https://url", "false"); $SendObject->setRequestHeader("Content-type", "text/xml"); $SendObject->send($xml); my $response = $SendObject->responseText; if(Win32::OLE->LastError()){ print "\n\n".Win32::OLE->LastError()."\n\n"; }
the response i get is:
Win32::OLE(0.1502) error 0x8000000a: "The data necessary to complete this operation is not yet available" in METHOD/PROPERTYGET "responseText"

The response is coming back blank. I noticed in the OLE browser the following winhttprequestsslerrorflags and there is an ignoreall flag there but i do not know how to set it.

I need to be able to ignore the cert error message and process the request and get valid information back...any and all help is greatly appreciated. Thanks

*************UPDATE*****************
$SendObject->SetProperty('Option', 4, 0x3300);
this will ignore the flags apparently in release winHttp 5.1 by default ignore all flag means ignore none of them unless you set it to 0x3300