Sign in to follow this  
Followers 0
sforce5

ImageShack API [ Need Help ]

1 post in this topic

#1 ·  Posted (edited)

ImageShack API

$sFile = "C:\image.png"

$sKey = "EXAMPLE KEY"

$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)
$oHTTP.WaitForResponse()
$sResponse = $oHTTP.ResponseText()

ConsoleWrite($sResponse)

returning this

<links>
   <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
    </error>
</links>

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  
Followers 0