Jump to content

upload screen shot


Recommended Posts

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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...