Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27554

Sending HTTP Request

$
0
0
Hi,

I have a local network on a 192 address space and would like to write some code that simply sends the following http request "http://192.168.1.60:80/?T03" to a listening server. I've searched for basic code but can't find anything.

Code:


Public Sub Test
Dim httplist as net.httpwebrequest, str as string, l_async as system.asynccallback, l_state as object

str = "http://192.168.1.60:80/?T03"

httplist = net.httpwebrequest.create(urlstr)
httplist.begingetresponse(l_async, l_state)

The above is simplified but essentially covers the main code I'm trying to understand. Any advice welcome.
Thanks,
N

Viewing all articles
Browse latest Browse all 27554

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>