sebonlien / bitly-api

Automatically exported from code.google.com/p/bitly-api
0 stars 0 forks source link

CORS fails for when POST method is used #39

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
cross domain resource sharing requests fail when the XMLHttpRequest is using 
the POST method (as opposed to GET that works fine).

not sure in fact if this applies to CORS or is also an issue for normal 
requests.

reason for asking for the POST method is to support longer URL to shorten, up 
to the 2000 chars supported by the standards.

at this point, a request to shorten a URL of 2000 chars fails

Original issue reported on code.google.com by paolocas...@gmail.com on 16 Mar 2011 at 2:26

GoogleCodeExporter commented 8 years ago
Can you re-check this and provide some example code that reproduces the issue? 
I've updated some cases where error responses did not set the right CORS 
headers. You should be able to do a get or post to /v3/shorten, although GET is 
the only officially supported method across all endpoints currently.

Original comment by jehiah on 16 Mar 2011 at 3:08

GoogleCodeExporter commented 8 years ago
actually... this seems my fault... I'm doublechecking things but it seems to 
work with POST

Original comment by paolocas...@gmail.com on 16 Mar 2011 at 3:27

GoogleCodeExporter commented 8 years ago
no problem; thanks for double-checking!

Original comment by jehiah on 16 Mar 2011 at 3:29

GoogleCodeExporter commented 8 years ago
definitely confirm that POST works.
it would be nice to have the POST method supported officially (same as GET) 
since it fits better with LONG URLs... thanks

Original comment by paolocas...@gmail.com on 16 Mar 2011 at 4:53