Hi,
I am using the Alternative Technique to create an
application and keep
getting an error "POST requests require a
Content-length header."
However, there is a Content-Length header being passed?
Should I be
doing this some other way?
Here's the request I'm passing:
POST /cws/v2/Merchant/XXXXXXXXXXXXX/request HTTP/1.0
Host: sandbox.google.com
Authorization: Basic XXXXXXXXXXXXX
Content-Type: application/xml
Accept: application/xml
Content-Length: 637
<?xml version="1.0"
encoding="UTF-8"?>
<checkout-shopping-cart xmlns="http://
checkout.google.com/schema/2">
<shopping-cart>
<items>
<item>
<item-name>1 Year Premium
Listing</item-name>
<item-description>1 Year Premium Listing for
test</item-description>
<unit-price
currency="USD">45.00</unit-price>
<quantity>1</quantity>
<merchant-private-item-data>XXXXXXXXXXX</merchant
-private-item-data>
</item>
</items>
</shopping-cart>
<checkout-flow-support>
<merchant-checkout-flow-support/>
</checkout-flow-support>
</checkout-shopping-cart>
Does anyone know why it is giving me the error?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "API Integration Basics" group.
To post to this group, send email to
google-checkout-api-integration googlegroups.com
To unsubscribe from this group, send email to
google-checkout-api-integration-unsubscribe googlegroups.com
For more options, visit this group at http://groups.google.com/group/google-checko
ut-api-integration?hl=en
-~----------~----~----~----~------~----~------~--~---
|