I am having a problem with fsockopen... I have narrowed it down to the
fact that the URL I am requesting is too long when attempting in this
fashion. What are the limitations to this, is there a way around it? I
have also tried posting using cURL and various other options but have
hit a wall where nothing seems to work.
I need to post XML to an API along with several variables outside of
that. For example:
testing.shippin gapis.com/ShippingAPI.dll ?API=CustomsCN2 2Certify&XML=<C ustomsCN22Certi fyRequest
USERID="XXXX" PASSWORD="XXX"> <Option></Option><FromFir stName>From
First</FromFirstName>< FromLastName>Fr om Last</FromLastName>
<FromFirm>Fro m Firm</FromFirm><FromA ddress1>From Address
1</FromAddress1><F romAddress2>640 6 Ivy
Lane</FromAddress2><F romCity>Greenbe lt</FromCity><FromS tate>MD</FromState><From Zip5>20770</FromZip5><FromZ ip4>1234</FromZip4><FromP hone>3019187658 </FromPhone><ToAd dress1>To
Address 1</ToAddress1><ToA ddress2>To Address
2</ToAddress2><ToA ddress3>To Address 3</ToAddress3><ToA ddress4>To
Address 4</ToAddress4><ToA ddress5>To Address
5</ToAddress5><ToA ddress6>To Address
6</ToAddress6><ToC ountry>France</ToCountry><ToAP OFPOZip5></ToAPOFPOZip5><T oPhone>11098453 2054</ToPhone><ToFax> 110984301292</ToFax><ToEmail> ToEmail@Company .com</ToEmail><Shippi ngContents>
<ItemDetail><De scription>Descr iption
1</Description><Qu antity>1</Quantity><Value >1</Value><NetPound s>5</NetPounds><NetO unces>0</NetOunces></ItemDetail></ShippingContent s><GrossPounds> 7</GrossPounds><Gr ossOunces>2</GrossOunces><Im ageType>GIF</ImageType><Cont entType>Gift</ContentType>
<HSTariffNumber ></HSTariffNumber> <CountryOfOrigi n></CountryOfOrigin ></CustomsCN22Requ est>
fact that the URL I am requesting is too long when attempting in this
fashion. What are the limitations to this, is there a way around it? I
have also tried posting using cURL and various other options but have
hit a wall where nothing seems to work.
I need to post XML to an API along with several variables outside of
that. For example:
testing.shippin gapis.com/ShippingAPI.dll ?API=CustomsCN2 2Certify&XML=<C ustomsCN22Certi fyRequest
USERID="XXXX" PASSWORD="XXX"> <Option></Option><FromFir stName>From
First</FromFirstName>< FromLastName>Fr om Last</FromLastName>
<FromFirm>Fro m Firm</FromFirm><FromA ddress1>From Address
1</FromAddress1><F romAddress2>640 6 Ivy
Lane</FromAddress2><F romCity>Greenbe lt</FromCity><FromS tate>MD</FromState><From Zip5>20770</FromZip5><FromZ ip4>1234</FromZip4><FromP hone>3019187658 </FromPhone><ToAd dress1>To
Address 1</ToAddress1><ToA ddress2>To Address
2</ToAddress2><ToA ddress3>To Address 3</ToAddress3><ToA ddress4>To
Address 4</ToAddress4><ToA ddress5>To Address
5</ToAddress5><ToA ddress6>To Address
6</ToAddress6><ToC ountry>France</ToCountry><ToAP OFPOZip5></ToAPOFPOZip5><T oPhone>11098453 2054</ToPhone><ToFax> 110984301292</ToFax><ToEmail> ToEmail@Company .com</ToEmail><Shippi ngContents>
<ItemDetail><De scription>Descr iption
1</Description><Qu antity>1</Quantity><Value >1</Value><NetPound s>5</NetPounds><NetO unces>0</NetOunces></ItemDetail></ShippingContent s><GrossPounds> 7</GrossPounds><Gr ossOunces>2</GrossOunces><Im ageType>GIF</ImageType><Cont entType>Gift</ContentType>
<HSTariffNumber ></HSTariffNumber> <CountryOfOrigi n></CountryOfOrigin ></CustomsCN22Requ est>
Comment