Friends,

I want to post the data to another url and i have the code like:

Dim uri As New Uri("http://www.xxx.asp";)

        Dim data As String = ""

        If (uri.Scheme = uri.UriSchemeHttp) Then

            data = "Msg=" & Message & "&Source=" & Source & "&Msgtype=Type1"

 

            Dim request As HttpWebRequest = HttpWebRequest.Create(uri)

            request.Method = WebRequestMethods.Http.Post

            request.ContentLength = data.Length

            request.ContentType = "application/x-www-form-urlencoded"

 

            Dim writer As New StreamWriter(request.GetRequestStream())

            writer.Write(data)

            writer.Close()

 

            Dim response As HttpWebResponse = request.GetResponse()

            Dim reader As New StreamReader(response.GetResponseStream())

            Dim tmp As String = reader.ReadToEnd()

            response.Close()

        End If

I have a message like "Welcome back", this message cannot be fixed in
program, it will change accordingly.

Everything is working fine except , it displays message like
"Welcomeback".Space is missing.

Does anyone know why it is so?

 

Thanks & Regards

Jeena Ajiesh

 

-- 
You received this message because you are subscribed to the Google
Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML
Web Services,.NET Remoting" group.
To post to this group, send email to dotnetdevelopment@googlegroups.com
To unsubscribe from this group, send email to
dotnetdevelopment+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en
or visit the group website at http://megasolutions.net

Reply via email to