Dim doc As XmlDocument
Dim nodes As XmlNodeList
doc = New XmlDocument()
doc.Load(http://......................?
method=listbatchsub......batch[0]......to..........batch[100])
For large requests, rather than use a GET or POST uri string, you'll
need to do a POST by using a Form Encoded Data request (application/x-
www-form-urlencoded).
dbm
' Set the Method property of the request to POST.
request.Method = "POST"
' Create POST data and convert it to a byte array.
Dim postData As String = "method=listbatchsubscribe&batch[0]
[email]=dd...@ss.com......to batch[200]......"
Dim byteArray As Byte() = Encoding.UTF8.GetBytes(postData)
' Set the ContentType property of the WebRequest.
request.ContentType = "application/x-www-form-urlencoded"
' Set the ContentLength property of the WebRequest.
request.ContentLength = byteArray.Length
' Get the request stream.
Dim dataStream As Stream =
DirectCast(request.GetRequestStream(), Stream)
' Write the data to the request stream.
dataStream.Write(byteArray, 0, byteArray.Length)
' Close the Stream object.
dataStream.Close()
' Get the response.
Dim response As WebResponse =
DirectCast(request.GetResponse(), WebResponse)