Sign in to follow this  
Followers 0
tsolrm

upload screen shot

1 post in this topic

Trying to upload a screenshot to http://fastpic.ru/

So far there is no error but nothing gets returned from the site ($sRead = "")

Help please?

$sURL = "fastpic.ru"

$hOpen = _WinHttpOpen()

$hConnect = _WinHttpConnect($hOpen, $sURL)

$sRead = _WinHttpSimpleFormFill($hConnect, Default, Default, _

"name:uploading", "1", _

"name:file[]", @ScriptDir&"\screens\"&$picture, _

"name:submit", "Загрузить")

ConsoleWrite (@error)

ConsoleWrite ($sRead)

_WinHttpCloseHandle($hConnect)

_WinHttpCloseHandle($hOpen)

FileWrite ("text.txt",$sRead)

exit

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