USPSServer Property
URL for the USPS server where the requests are sent.
Syntax
property USPSServer: String;
Default Value
'https://secure.shippingapis.com/ShippingAPI.dll'
Remarks
URL for the USPS server where the requests are sent.
There are two different live and test URLs that have been provided by the US Postal service for use with the Webtools APIs (and these components). There is one plaintext URL and one SSL-secured URL for both live and testing. These URLs are listed below, along with the components that use them.
Live Servers:
Server | Used by |
http://production.shippingapis.com/ShippingAPI.dll | USPSAddress, USPSRates, and USPSTrack |
https://secure.shippingapis.com/ShippingAPI.dll | USPSShip and USPSShipIntl |
Test Servers:
Server | Used by |
http://testing.shippingapis.com/ShippingAPITest.dll | USPSAddress, USPSRates, and USPSTrack |
https://secure.shippingapis.com/ShippingAPITest.dll | USPSShip and USPSShipIntl |
These test servers return CANNED RESPONSES. They will only accept a specific set of data, and will only return one pre-formed response. Any transaction that does not contain the exact data they expect will cause an error to be generated. Because of these limitations we strongly recommend you test using a live account.
Note that the label components must use the live server for testing, but with the Certify configuration setting set to True.
When PostageProvider has been set to ppEndicia, the live production URL is "https://labelserver.endicia.com/LabelService/EwsLabelService.asmx".
Data Type
String