codeminders / imageshackapi

Automatically exported from code.google.com/p/imageshackapi
0 stars 0 forks source link

POST to setlogin.php always returns empty #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Per the wiki here: http://code.google.com/p/imageshackapi/wiki/ImageshackAPI

I should be able to do a POST or GET to
http://reg.ImageShack.us/setlogin.php to determine if a user is registered
or not. I can successfully make a GET request and get a proper response
with XML content. If I make a POST request to the same location using the
same parameters, I get a 200 response code but the content is always empty.

I would expect to get the same content back from both request types.

Original issue reported on code.google.com by travis.illig on 15 Dec 2009 at 12:36

GoogleCodeExporter commented 9 years ago
you are right, sorry, URL in document is incorrect.
Please use http://my.imageshack.us/setlogin.php instead, sample:

curl -F xml=yes -F login=b2b745fce6edf3055805b07709ac34f5 
http://my.imageshack.us/setlogin.php

<?xml version="1.0" encoding="iso-8859-1"?><account_data>
<exists>yes</exists>
<reg_code>b2b745fce6edf3055805b07709ac34f5</reg_code>
<email>example@imageshack.us</email>
<credits>20</credits>
<username>sena</username>
</account_data>

I've updated documentation

Original comment by lyolik1...@gmail.com on 4 Mar 2010 at 1:31