Login   Register  
PHP Classes
elePHPant
Icontem

Unsupported media type error

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      REST Client  >  All threads  >  Unsupported media type error  >  (Un) Subscribe thread alerts  
Subject:Unsupported media type error
Summary:Unsupported media type error
Messages:1
Author:satheesh
Date:2011-12-03 04:12:15
 

  1. Unsupported media type error   Reply  
Picture of satheesh
satheesh
2011-12-03 04:12:15
Hi,

The code is awesome. But i get the below error, when integrating. Please help.

Response:
object(RestClient)[2]
private 'curl' => null
private 'url' => string 'http://services.stage.mycareer.com.au/upload/jeffresstest1/jobpostings' (length=70)
private 'response' => string '
<error><code>415</code><message>Unsupported media type</message><details>Unsupported media type specified.</details></error>' (length=128)
private 'headers' =>
array
'content-type' => string 'text/xml' (length=8)
'code' => string '415' (length=3)
'message' => string 'Unsupported Media Type' (length=22)
private 'method' => string 'POST' (length=4)
private 'params' => null
private 'contentType' => string 'multipart/form-data' (length=19)
private 'file' => null