Launchpad logo and name.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index ][Thread Index ]

Re: [Launchpad-users] Updating bugs with the API



On Sat, 2011-03-19 at 20:20 +0100, Matt Barringer wrote:
> I'm trying to update bugs in Launchpad using the API, but every time
> I 
> issue a PATCH call on api.staging.launchpad.net, it returns either a
> "400 
> Bad Request", or a "401 Bad Request".
> 
> I'm not using the Python library, but rather direct HTTP calls.
> Here's an 
> example:
> 
> -----------------------------------------------------------------
> $ openssl s_client -connect api.staging.launchpad.net:443
> CONNECTED(00000003)
> [openssl stuff snipped]
> 
> PATCH /1.0/entomologist2/+bug/733006 HTTP/1.0
> Host: api.staging.launchpad.net
> Authentication: OAuth [oauth snipped but the tokens are valid]
> Content-Type: application/json
> Accept-Language: en-US,*
> User-Agent: Mozilla/5.0
> Content-Length: 27 

I do not see a referer header set. Lp rejects requests that modify data
without a valid referrer. I think the referer in this example is
    https://api.staging.launchpad.net/1.0/entomologist2/+bug/733006

-- 
__Curtis C. Hovey_________
http://launchpad.net/

Attachment: signature.asc
Description: This is a digitally signed message part



This is the launchpad-users mailing list archive — see also the general help for Launchpad.net mailing lists.

(Formatted by MHonArc.)