If anyone has any experience with the USPS delivery confirmation API, I'd really appreciate any insight I can get...
I am using PHP and cURL to send an XML request to the D.C. API. When I send the response through cURL, I get nothing. No error response, no XML, or anything. When I send the XML through a browser, I get an error response, which is at least a response. I am at a standstill because the error I get through the browser apparantly (according to their support line) means that their server problems are affecting the API. However, I don't know why I wouldn't be able to get that response through cURL.
We're using the Address Validation API and .NET, not Delivery Confirmation and PHP, but maybe I can help.
The XML that you send the post office should just be a party of the query string like this:
https://servername/ShippingAPITest.dll?API=DeliveryConfirmationV3&XML=<DeliveryConfirmationV3.0Request USERID="username">…….</DeliveryConfirmationV3.0Request>
Then they just serve you up an XML document right back. I've never used the cURL library, but maybe you can check that this is what it's actually sending.
Also, have you been approved yet? If not, then they only allow the canned test responses. Anything else will give you an error, even if it would be valid on the production server.