WinHttpOpenRequest: ERROR 404 NOT FOUND
-
Hello, I'm trying to send text file to a IIS Server with the function WinHttpOpenRequest hRequest = WinHttpOpenRequest(hConnect, L"PUT", L"/HelloTest1.txt", NULL, WINHTTP_NO_REFERER, WINHTTP_DEFAULT_ACCEPT_TYPES, NULL); bResults = WinHttpSendRequest(hRequest, WINHTTP_NO_ADDITIONAL_HEADERS, 0, WINHTTP_NO_REQUEST_DATA, 0, wcslen(pwchData), 0); But the http response is 404 NOT Found. Are there a special folder for the text file? Thanks for your help
-
Hello, I'm trying to send text file to a IIS Server with the function WinHttpOpenRequest hRequest = WinHttpOpenRequest(hConnect, L"PUT", L"/HelloTest1.txt", NULL, WINHTTP_NO_REFERER, WINHTTP_DEFAULT_ACCEPT_TYPES, NULL); bResults = WinHttpSendRequest(hRequest, WINHTTP_NO_ADDITIONAL_HEADERS, 0, WINHTTP_NO_REQUEST_DATA, 0, wcslen(pwchData), 0); But the http response is 404 NOT Found. Are there a special folder for the text file? Thanks for your help
The only person who can answer that question is the person who set up the site.
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer