Using cURL to verify Google Checkout Connection

Hello World!
Trying to dabble with Google Checkout XML API to make shopping carts/e commerce…
http://code.google.com/apis/checkout/developer/Google_Checkout_XML_API.html

My question lied in the following step # 4:

You can use curl (or a similar tool) to verify that your server communicates properly with Google Checkout. To complete this test, enter the following commands in your terminal window. Substitute S_MERCHANT_ID and S_MERCHANT_KEY with your Sandbox ID and key; P_MERCHANT_ID and P_MERCHANT_KEY with your production ID and key;
[code]Test the Sandbox account: (enter on one line) curl -d '' https://S_MERCHANT_ID:[email protected]/checkout/api/checkout/v2/request/Merchant/S_MERCHANT_ID

Test the production account: (enter on one line)
curl -d ‘’
https://P_MERCHANT_ID:[email protected]/api/checkout/v2/request/Merchant/P_MERCHANT_ID[/code]

  1. I have the working PHP 5.*/ cURL libraries…
  2. Dont have access to command line curl
  3. Have an available MerchantID/Merchant Key (steps 1,2 & 3)
  4. How would i use PHP/cURL to do the aforementioned command equivalently

Thanks

php has a curl function - http://www.php.net/manual/en/ref.curl.php

Sponsor our Newsletter | Privacy Policy | Terms of Service