Hello, For sharing screenshots with my friends I'm using uploadscreenshot.com. I noticed they have a useable API, so I thought I could create a neat little program which will upload screenshot with a single button click. After reading their documentation I started to play some with WinHTTP, but unfortunately I have zero experience with WinHTTP. API documentation: www.uploadscreenshot.com/api-documentation What I've tried: #include "WinHTTP/WinHttp.au3"
Global Const $sAPIKey = "*snip*"
Global Const $sAPIURL = "http://img1.uploadscreenshot.com/api-upload.php"
Global Const $sIP = "209.105.243.66" ; pinged from 'uploadscreenshot.com'
Global $hOpen = _WinHttpOpen()
Global $hConnect = _WinHttpConnect($hOpen, $sAPIURL)
Global $hRequest = _WinHttpOpenRequest($hConnect, "POST", "C:\Users\Lyker\Desktop\Other\Untitled-1.png")
_WinHttpSendRequest($hRequest)
_WinHttpReceiveResponse($hRequest)
MsgBox(0, "", _WinHttpReadData($hRequest))
_WinHttpCloseHandle($hRequest)
_WinHttpCloseHandle($hConnect)
_WinHttpCloseHandle($hOpen) I have no idea how I should use the WinHTTP UDF to connect with their API and send images & fill in variables. Any pokes in the right direction? Almar