Export to GitHub

imageshackapi - issue #32

cant upload: You must provide a valid auth token or dev key


Posted on Mar 9, 2012 by Quick Camel

What steps will reproduce the problem? 1. trying to send my multi-part data into a socket to the api

What is the expected output? What do you see instead? a working upload :)

i'm sendint that in a socket to imageshack api:

POST /upload_api.php HTTP/1.1 Host: www.imageshack.us User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:0.8) Gecko/20100101 Firefox/8.0 Accept: application/xml Connection: close Content-Type: multipart/form-data;charset=ISO-8859-1;boundary=98fa3d2d83ab917526207bd1d4d9b95c Content-Length: 127777

--98fa3d2d83ab917526207bd1d4d9b95c Content-Disposition: form-data; name="key" Content-Type: text/html

[HERE MY KEY (i mask)]

--98fa3d2d83ab917526207bd1d4d9b95c Content-Disposition: form-data; name="fileupload"; filename="darksiders_2.jpg" Content-Type: image/jpeg

[My file datas (binary)]

--98fa3d2d83ab917526207bd1d4d9b95c Content-Disposition: form-data; name="optsize" Content-Type: text/html

resample

--98fa3d2d83ab917526207bd1d4d9b95c Content-Disposition: form-data; name="a_username" Content-Type: text/html

hisoka2501@free.fr

--98fa3d2d83ab917526207bd1d4d9b95c Content-Disposition: form-data; name="a_password" Content-Type: text/html

hacker

--98fa3d2d83ab917526207bd1d4d9b95c Content-Disposition: form-data; name="uploadtype" Content-Type: text/html

0

--98fa3d2d83ab917526207bd1d4d9b95c Content-Disposition: form-data; name="public" Content-Type: text/html

yes

--98fa3d2d83ab917526207bd1d4d9b95c Content-Disposition: form-data; name="url" Content-Type: text/html

http://ImageShack.us/slideshow/index.php?url=http://static.flickr.com/39/84283230_4730c2ab58_b.jpg&title=snowman&action=transload

--98fa3d2d83ab917526207bd1d4d9b95c Content-Disposition: form-data; name="rembar" Content-Type: text/html

1

--98fa3d2d83ab917526207bd1d4d9b95c Content-Disposition: form-data; name="xml" Content-Type: text/html

yes

--98fa3d2d83ab917526207bd1d4d9b95c--

but unfortunatly i get that:

HTTP/1.1 200 OK Server: nginx/1.0.4 Date: Fri, 09 Mar 2012 17:26:24 GMT Content-Type: text/html Transfer-Encoding: chunked Connection: close X-Powered-By: PHP/5.2.9

8c <links> <error id="auth_error">You must provide a valid auth token or dev key. see http://code.google.com/p/imageshackapi/</error&gt; </links>

0

and thats all, i checked, my key is the good (i just copy and past (no spaces before and after)

(ps: what should i put in the "url" parameter, i mean, an existing url or something else ?)

thanks for reading this^^

Comment #1

Posted on Mar 9, 2012 by Quick Camel

hum any admin can edit my mails informations please ? (i forgot to remove :/) (i changed the pass anyway but...)

Comment #2

Posted on Jun 21, 2012 by Happy Ox

I am also having the same issue please let me know what to do?

Comment #3

Posted on Aug 6, 2013 by Happy Rabbit

Tried to upload file with apache http client, got the same issue.

Status: New

Labels:
Type-Defect Priority-Medium