Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

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

Open
GoogleCodeExporter opened this issue Mar 30, 2015 · 3 comments
Open

Comments

@GoogleCodeExporter
Copy link

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

[email protected]

--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
Copy link
Author

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

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

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

Original comment by [email protected] on 21 Jun 2012 at 7:49

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

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

Original comment by [email protected] on 6 Aug 2013 at 7:26

  • Added labels: ****
  • Removed labels: ****

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant