vbnetcoder2005
New member
- Joined
- Sep 28, 2005
- Messages
- 2
I am trying to POST data to a form in my VB.net app and am getting an error from the particular web server that an HTTP protocal has been. When I anaylzed the data the my app is passing versus a web browser for example I noticed that the test my application is sending is plain text such as this.
message= this is a regular message
While the web browser was sending information like this:
message= this+is+a+regular+message
Is there sometype of library in VB.net that will convert my plain text to the format the web server would like to see. Note here is my VB.net code POST code snippet:
Send Request, If Request
If (Method = HTTPMethod.HTTP_POST) Then
Try
If RefererURL <> "" Then
Request.Referer = RefererURL
End If
SW = New StreamWriter(Request.GetRequestStream())
SW.Write(PostData)
Catch Err As WebException
MsgBox(Err.Message, MsgBoxStyle.Information, "Error")
Finally
Try
SW.Close()
Catch
Dont process an error from SW not closing
End Try
End Try
End If
message= this is a regular message
While the web browser was sending information like this:
message= this+is+a+regular+message
Is there sometype of library in VB.net that will convert my plain text to the format the web server would like to see. Note here is my VB.net code POST code snippet:
Send Request, If Request
If (Method = HTTPMethod.HTTP_POST) Then
Try
If RefererURL <> "" Then
Request.Referer = RefererURL
End If
SW = New StreamWriter(Request.GetRequestStream())
SW.Write(PostData)
Catch Err As WebException
MsgBox(Err.Message, MsgBoxStyle.Information, "Error")
Finally
Try
SW.Close()
Catch
Dont process an error from SW not closing
End Try
End Try
End If