Jump to content
Sign in to follow this  
spymare

php file upload

Recommended Posts

trancexx

We have general rule about helping with code and not helping by writing code.

But since this is sort of a new thing, here:

#include "WinHttp.au3"

Global Const $sAddress = "some.address"

Global $hOpen = _WinHttpOpen()
Global $hConnect = _WinHttpConnect($hOpen, $sAddress)
Global $sHTM = _WinHttpSimpleFormFill($hConnect, Default, Default, "name:uploaded", @ScriptFullPath)
_WinHttpCloseHandle($hConnect)
_WinHttpCloseHandle($hOpen)

ConsoleWrite(">Server response:" & @CRLF & $sHTM & @CRLF)
MsgBox(262144, "Server response", $sHTM)
Edited by trancexx

♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites
spymare

thx ;) but how would i make it upload example @scriptdir & "\test.docx :)

Share this post


Link to post
Share on other sites
spymare

closed

Edited by spymare

Share this post


Link to post
Share on other sites
spymare

hmm i don't get it how to upload examples a file from c drive

Share this post


Link to post
Share on other sites
spymare

closed

Edited by spymare

Share this post


Link to post
Share on other sites
Valik

You might try actually communicating. Just saying "closed" makes no sense. Neither does reporting the thread stating it should be deleted without offering any justification on context for why it should be deleted.

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.