Hi
i have this code and it works when the method is selected as GET but does not work when i select the POST method. What is wrong please help
Code:Private Sub Winsock1_Connect() Dim Url As String Dim StrTh As String StrTh = "POST " & "http://localhost/winsock/winsock/post.php?name=" & Text1.Text & "&email=" & Text2.Text & "&msg=" & Text3.Text & vbCrLf StrTh = StrTh & "HTTP/1.0" & vbCrLf StrTh = StrTh & "Accept: */*" & vbCrLf StrTh = StrTh & "Accept: text/html" & vbCrLf & vbCrLf StrTh = StrTh & "Content-Type: application/x-www-form-urlencoded" & vbCrLf Winsock1.SendData StrTh End Sub





Reply With Quote