OK. There's much more to this, apparently. Perhaps I cannot do what I'm attempting...
The full routine now is
Function WinHTTPPostRequest(URL, theFile) Dim http Set http = CreateObject("WinHttp.WinHttprequest.5.1") http.Open "POST", URL & "?filename=" & theFile, False http.setRequestHeader "Content-Type", "application/zip" http.send ("Post data") 'Get a result of the script which has received upload WinHTTPPostRequest = http.responseText Debug.Print http.responseText End Function
Th response is now
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>403 Forbidden</title> </head><body> <h1>Forbidden</h1> <p>You don't have permission to access /files/site/ on this server.</p> <hr>
What do I need to do to "be allowed" or "have permission " ?
Would showing you the routine which does "allow" me to send data (instead of a zip file)
be useful ?