« eBay DevCon - Call for Papers | Main | Developer Impact: Spring 2010 Announcements »

Mismatched CONTENT-TYPE Will Now Cause Call Failure

As of January 15, 2010, eBay evaluates the CONTENT-TYPE header against the request payload format. If the CONTENT-TYPE value is incorrect for the payload, the request will fail. Previously, eBay did not validate the CONTENT-TYPE header in requests.

This HTTP header is optional. If you do not submit the CONTENT-TYPE header with your request, eBay will determine the content type from the payload.

The following table lists the correct CONTENT-TYPE header values for HTTP POST request formats:

Request Payload Format

Content-Type Value

XML

text/xml

SOAP12

application/soap+xml

SOAP11

text/xml (in conjection with SOAPAction header being sent - value can be anything)

See File Transfer Service: Making An API Call for more information about the call format for the File Transfer API.

January 22, 2010 in Critical Notes from Tech Support, Finding API, Large Merchant Services | Permalink