0

HTTP Error 400 when add an update

Hi,
I'm getting the 400 error code when I try to put an update. These are the response headers

HTTP/1.1 400 status
Age:0
Date:Mon, 20 Apr 2009 15:57:02 GMT
Vary:Accept-Encoding
P3P:policyref="http://p3p.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE GOV"
Content-Length:217
Via:HTTP/1.1 r3.ycpi.a2s.yahoo.net (YahooTrafficServer/1.17.16 [cMs f ])
Content-Type:application/json
Connection:keep-alive
Server:YTS/1.17.16
Cache-Control:private

I can access the user update list, but i can't add a new update using json or XML I get the same error.

Can someone help me on this?

Thanks in advance.

3 Replies
  • Hi Ciro,

    Can you please provide the error log entry for this error. Are you using the PHP SDK or a custom OAuth implementation? If custom, which OAuth library?

    Thanks,
    Jon

    QUOTE (Ciro @ Apr 20 2009, 08:08 AM) <{POST_SNAPBACK}>
    Hi,
    I'm getting the 400 error code when I try to put an update. These are the response headers

    HTTP/1.1 400 status
    Age:0
    Date:Mon, 20 Apr 2009 15:57:02 GMT
    Vary:Accept-Encoding
    P3P:policyref="http://p3p.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE GOV"
    Content-Length:217
    Via:HTTP/1.1 r3.ycpi.a2s.yahoo.net (YahooTrafficServer/1.17.16 [cMs f ])
    Content-Type:application/json
    Connection:keep-alive
    Server:YTS/1.17.16
    Cache-Control:private

    I can access the user update list, but i can't add a new update using json or XML I get the same error.

    Can someone help me on this?

    Thanks in advance.
    0
  • QUOTE (Jon @ Apr 21 2009, 07:31 AM) <{POST_SNAPBACK}>
    Hi Ciro,

    Can you please provide the error log entry for this error. Are you using the PHP SDK or a custom OAuth implementation? If custom, which OAuth library?

    Thanks,
    Jon


    Hi Jon,

    I'm using a custom OAuth implementation.

    I'm using Java with a library developed by me an my coworkers, OAuth authentication is working fine, I can get user information, list user updates.

    Basically when I use GET or POST methods, no problem, but when I user PUT or DELETE I get the 400 error code.

    Thanks,

    Ciro Anunciação.
    0
  • Are you using the Java OAuth library from Google code (http://oauth.googlecode.com/svn/code/java/core/) in your implementation? If so, there was a recent library update to Java to integrated PUT / DELETE support - so if this is the case you may want to start by obtaining the most recent OAuth library to see if that works.

    If not, if you can post your error log that would be great for helping us nail down the issue.

    Jonathan LeBlanc
    Senior Software Engineer
    Yahoo! Developer Network
    Twitter: jcleblanc

    QUOTE (Ciro @ Apr 22 2009, 04:44 AM) <{POST_SNAPBACK}>
    Hi Jon,

    I'm using a custom OAuth implementation.

    I'm using Java with a library developed by me an my coworkers, OAuth authentication is working fine, I can get user information, list user updates.

    Basically when I use GET or POST methods, no problem, but when I user PUT or DELETE I get the 400 error code.

    Thanks,

    Ciro Anunciação.
    0
This forum is locked.

Recent Posts

in Updates