(As.Net 1.1 framework!)
Hi!
So, I have problem as described in subject.
Here is source code:
Public Sub SendFormData(By Val sUrl As String, ByVal sFormData As String) As
String
Try
Dim sbHTMLResponse As New StringBuilder
Dim byte_data As Byte() = Encoding.UTF8.G etBytes(sFormDa ta.ToString)
Dim NewRequest As HttpWebRequest = CType(WebReques t.Create(sUrl),
HttpWebRequest)
NewRequest.Meth od = "POST"
NewRequest.Cont entType = "applicatio n/x-www-form-urlencoded"
NewRequest.Cont entLength = byte_data.Lengt h
NewRequest.Allo wAutoRedirect = False
Dim oNewRequestStre am As Stream = NewRequest.GetR equestStream()
oNewRequestStre am.Write(byte_d ata, 0, byte_data.Lengt h)
oNewRequestStre am.Close()
Catch ex As Exception
Response.Write( "Exception happend!")
End Try
End Sub
I have sent this string:
sgGCXlQlpbn+rBO otb8jiZ/xVrUXBOl2kx9LGs jrmtOoazaf85A6r yXiuB+OglO6OWJ+ gUT7M4v+ilaF8km rOP5JqxYwODcPVh I4UIbYhWeJ4Jibp Dxpbaf2kVLeU/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/xVrUXBOl2kx9LGs jrmtOoazaf85A6r yXiuB OglO6OWJ gUT7M4v
ilaF8kmrOP5JqxY wODcPVhI4UIbYhW eJ4JibpDxpbaf2k VLeU/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!