M
Mateo
(As.Net 1.1 framework!)
Hi!
So, I have problem as described in subject.
Here is source code:
Public Sub SendFormData(ByVal sUrl As String, ByVal sFormData As String) As
String
Try
Dim sbHTMLResponse As New StringBuilder
Dim byte_data As Byte() = Encoding.UTF8.GetBytes(sFormData.ToString)
Dim NewRequest As HttpWebRequest = CType(WebRequest.Create(sUrl),
HttpWebRequest)
NewRequest.Method = "POST"
NewRequest.ContentType = "application/x-www-form-urlencoded"
NewRequest.ContentLength = byte_data.Length
NewRequest.AllowAutoRedirect = False
Dim oNewRequestStream As Stream = NewRequest.GetRequestStream()
oNewRequestStream.Write(byte_data, 0, byte_data.Length)
oNewRequestStream.Close()
Catch ex As Exception
Response.Write("Exception happend!")
End Try
End Sub
I have sent this string:
sgGCXlQlpbn+rBOotb8jiZ/xVrUXBOl2kx9LGsjrmtOoazaf85A6ryXiuB+OglO6OWJ+gUT7M4v+ilaF8kmrOP5JqxYwODcPVhI4UIbYhWeJ4JibpDxpbaf2kVLeU/0Z7iwM9XgR9ho4
Other applications (asp.net application on same server, asp.net application
on other server and php application on other server) receive this string
(please note that the '+' becomed space):
sgGCXlQlpbn rBOotb8jiZ/xVrUXBOl2kx9LGsjrmtOoazaf85A6ryXiuB OglO6OWJ gUT7M4v
ilaF8kmrOP5JqxYwODcPVhI4UIbYhWeJ4JibpDxpbaf2kVLeU/0Z7iwM9XgR9ho4
Any ideas?
Only connection I have found between '+' and space is in some old cgi
article about URL encoding where space is coded as '+'. But this is FORM
POST method... And '+' is obviously coded as space.
Thanx in advance!
Hi!
So, I have problem as described in subject.
Here is source code:
Public Sub SendFormData(ByVal sUrl As String, ByVal sFormData As String) As
String
Try
Dim sbHTMLResponse As New StringBuilder
Dim byte_data As Byte() = Encoding.UTF8.GetBytes(sFormData.ToString)
Dim NewRequest As HttpWebRequest = CType(WebRequest.Create(sUrl),
HttpWebRequest)
NewRequest.Method = "POST"
NewRequest.ContentType = "application/x-www-form-urlencoded"
NewRequest.ContentLength = byte_data.Length
NewRequest.AllowAutoRedirect = False
Dim oNewRequestStream As Stream = NewRequest.GetRequestStream()
oNewRequestStream.Write(byte_data, 0, byte_data.Length)
oNewRequestStream.Close()
Catch ex As Exception
Response.Write("Exception happend!")
End Try
End Sub
I have sent this string:
sgGCXlQlpbn+rBOotb8jiZ/xVrUXBOl2kx9LGsjrmtOoazaf85A6ryXiuB+OglO6OWJ+gUT7M4v+ilaF8kmrOP5JqxYwODcPVhI4UIbYhWeJ4JibpDxpbaf2kVLeU/0Z7iwM9XgR9ho4
Other applications (asp.net application on same server, asp.net application
on other server and php application on other server) receive this string
(please note that the '+' becomed space):
sgGCXlQlpbn rBOotb8jiZ/xVrUXBOl2kx9LGsjrmtOoazaf85A6ryXiuB OglO6OWJ gUT7M4v
ilaF8kmrOP5JqxYwODcPVhI4UIbYhWeJ4JibpDxpbaf2kVLeU/0Z7iwM9XgR9ho4
Any ideas?
Only connection I have found between '+' and space is in some old cgi
article about URL encoding where space is coded as '+'. But this is FORM
POST method... And '+' is obviously coded as space.
Thanx in advance!