POST /gsa_test.gsa HTTP/1.1
Host: 127.0.0.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryJZLTzPUbmAObjT3a
Origin: http://127.0.0.1
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.122 Safari/537.36
Private Sub Command3_Click()
On Error Resume Next
Dim ArgumentString As String
POSTData = "POST /gsa_test.gsa HTTP/1.1" & vbCrLf
POSTData = POSTData & "Accept-Encoding: gzip, deflate" & vbCrLf
POSTData = POSTData & "User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)" & vbCrLf
POSTData = POSTData & "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9" & vbCrLf
POSTData = POSTData & "127.0.0.1" & vbCrLf
POSTData = POSTData & "Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryJZLTzPUbmAObjT3a" & vbCrLf
'POSTData = POSTData & "Content-length " & Len(ArgumentString) & vbCrLf & vbCrLf
POSTData = POSTData & ArgumentString & vbCrLf
Winsock1.SendData POSTData
End Sub
неверный протокол или состояние соединения.
у меня есть другое приложение, работающее в качестве сервера, и если я go по этому адресу http://127.0.0.1/gsa_test.gsa загружается в браузер