Hi Experts,
After a long struggle I am able to fetch CSRF token using a GET from a REST client. When am using the CSRF token generated in my POST call I am getting the 415 Unsupported Media Type error.
Any help and guidance on this is highly appreciated.
My Request and Response Headers are as below:
User-Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36
Origin: chrome-extension://hgmloofddffdnphfgcellkdfbfbjeloo
X-CSRF-TOKEN: D_dl8YTqmo8McA5hB6wbSQ==
Authorization: Basic eHN0aXdhcmk6Z2F0ZXdheXNha2V0
Accept: */*
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8,te;q=0.6
Cookie: SAP_SESSIONID_SGW_410=Yp1hr0N7UnRw1-E89GUivHj9wDz7xxHjgMkAUFatdjY%3d
content-type: application/xml
content-length: 805
dataserviceversion: 1.0
<errorxmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
<code>
005056A509B11ED199D882461C8C60FE
</code>
<messagexml:lang="en">
The server is refusing to process the request because the entity has a unsupported format
</message>
<innererrorxmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
<transactionid>
</innererror>A4CFFBE3CDBEF1A180C9005056AD7636
</transactionid>
<timestamp>
20140624184500.2310000
</timestamp>
<Error_Resolution>
<SAP_Transaction>
</Error_Resolution>Run transaction /IWFND/ERROR_LOG on SAP NW Gateway hub system and search for entries with the timestamp above for more details
</SAP_Transaction>
<SAP_Note>
</SAP_Note>
</error>
Regards,
Saket.