Get the return value of the URL using HTTPWebRequest

xiaoxiao2021-03-06  60

'Get the return value of the URL using HTTPWebRequest

Function geturlue (byval url as string) AS STRING

DIM httpwebrequest as system.net.webrequest = system.net.WebRequest.create (URL)

DIM httpwebresponse as system.net.webresponse = httpwebrequest.getResponse ()

Dim httpstreamreader as new system.io.streamReader (httpwebresponse.getresponsestream (), System.Text.Encoding.Getencoding ("GB2312"))

Return HttpStreamReader.ReadToend

END FUNCTION

转载请注明原文地址:https://www.9cbs.com/read-112087.html

New Post(0)