Mar
21
2008

WebClient

211 views
 
<%
Dim colParameter As New System.Collections.Specialized.NameValueCollection
colParameter.Add("a", "aaaaaaaaa")
colParameter.Add("b", "bbbbbbbbb")
 
Dim objClient As Net.WebClient = New System.Net.WebClient
Dim bytReponse As Byte() = objClient.UploadValues("http://domain.com/path/to/script", "POST",colParameter)
Dim strWebPage As String = Encoding.ASCII.GetChars(bytReponse)
 
Response.Write(strWebPage)
%>
 
Written by Pipo in: VB.Net & Aspx | Tags:

No Comments »

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress | Aeros Theme | TheBuckmaker.com WordPress Themes