Jump to content
Sign in to follow this  

ImageShack API [ Need Help ]

Recommended Posts


ImageShack API

$sFile = "C:\image.png"


$oHTTP = ObjCreate("WinHttp.WinHttpRequest.5.1")
$oHTTP.Open("POST", "http://www.imageshack.us/upload_api.php")
;$oHTTP.SetTimeouts(5000, 5000, 15000, 15000)
$oHTTP.SetRequestHeader("Content-Type", 'multipart/form-data;')
$oHTTP.SetRequestHeader("User-Agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)")
$oHTTP.Send('fileupload="' & $sFile & '"&key=' & $sKey)
$sResponse = $oHTTP.ResponseText()


returning this

   <error id="parameter_missing">
        Sorry, but we've detected that unexpected data is received. Required parameter 'fileupload' is missing or your post is not multipart/form-data

Developer Key is Exists!!!

Edited by sforce5

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.