Request

To send a request to the PLD Upload tool, an application writes a stream of data out to the tools via a TCP/IP socket or a URL connection. The datastream must be in the form of a multipart HTTP request message.

The single message parts inside the message are delimited by a "--BOUNDARY".
The complete message must end with a "--BOUNDARY--".

Parameter for the first message part
Header
Content-type: application/x-www-form-urlencoded.
Content-length: as the method POST is used a current Content-length is required
Message
AppVersion 1.0
AcceptUPSLicenseAgreement YES
ResponseType application/x-ups-pld
VersionNumber V4R1

Note:
A UserID and Password will be provided by a UPS PLD specialist.


Parameter for the second message part
Header
Content-type: application/x-ups-binary
Content-length: as the method POST is used a current Content-length is required
Message
the complete content of the PLD0200 file without any CR or LF



sample of a complete request message:
--BOUNDARY
Content-type: application/x-www-form-urlencoded
Content-length: 134

AppVersion=1.0&AcceptUPSLicenseAgreement=YES&ResponseType=application/x-ups-pld&VersionNumber=V4R1&UserId=XXXXXXXXX&Password=XXXXXXXXX

--BOUNDARY
Content-type: application/x-ups-binary
Content-length: 719

020094                                  2003081300000590000000200   000000001*AA0TEST0    DE                5900000002000001*BA1Z0TEST06800000018                 00001+0000000000000010 +0000000000000000KGS11PRE10                                   3CMEUR000001*CA18                                   United Parcel Service              Goerlitzer Str 1                                                                                         Neuss                              41460    DE                                                        *PA1Z0TEST06800000018                 02+0000010                                                                                      +0000000+00000000+00000000+00000000*SA000004

--BOUNDARY--




Copyright © 2003 United Parcel Service Deutschland Inc. & Co. OHG