codeminders / imageshackapi

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

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

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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/8428323
0_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>
</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^^

Original issue reported on code.google.com by hisoka2501 on 9 Mar 2012 at 5:36

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

Original comment by hisoka2501 on 9 Mar 2012 at 5:47

GoogleCodeExporter commented 9 years ago
I am also having the same issue please let me know what to do?

Original comment by muhammad...@gmail.com on 21 Jun 2012 at 7:49

GoogleCodeExporter commented 9 years ago
Tried to upload file with apache http client, got the same issue.

Original comment by gobo...@gmail.com on 6 Aug 2013 at 7:26