按照1楼的方法,果然可行。 可是返回值是个 database email is: [email protected] email is: [email protected] is [email protected] State=UT. databaseState=UT. PostedZip=84001. databaseZip=84001Existing customer. Email, state and zip match, updating customer via matched email address. &result=0&orderid=121000702怎么能提取result和orderid
可是返回值是个
database email is: [email protected] email is: [email protected] is [email protected] State=UT. databaseState=UT. PostedZip=84001. databaseZip=84001Existing customer. Email, state and zip match, updating customer via matched email address.
&result=0&orderid=121000702怎么能提取result和orderid
curl_setopt($ch, CURLOPT_URL, 'https://www.orderyourstoday.com/TestEnvironment/orderinputapi.asp?username=apitest&password=testaccount&[email protected]&firstName=test&lastName=test&address=123+Test+St&city=Test+City&state=UT&postal=84001&country=US&confOnOff=E&preferredShipMethod=USPS1CL&sku01=test&qty01=1');
curl_setopt($ch, CURLOPT_PORT , 443);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_TIMEOUT, 30);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$response = curl_exec($ch); echo $response;
如果用POST方式会更好
我就用POST来做了