Forum Moderators: open
I would really benefit from a concise sample (in vb.NET) demonstrating how I might accomplish this task.
--Deadlines take the fun out of learning
Protected Function UploadValues(ByVal xml As String) As String
Dim myWebClient As New WebClient
Dim URL As String = "put post url here"
Dim myNameValueCollection As New System.Collections.Specialized.NameValueCollection
myNameValueCollection.Add("xml", xml)
Try
Dim responseArray As Byte() = myWebClient.UploadValues(URL, "POST", myNameValueCollection)
UploadValues = Encoding.ASCII.GetString(responseArray)
'here is you stream from source
Catch ex As Exception
Return ex.Message
End Try
End Function
you response is UploadValues
lblPostXMLResult.Text=UploadValues(myXMLstring)
<snip>
[edited by: Xoc at 12:16 am (utc) on Oct. 27, 2005]