Skip to content

Instantly share code, notes, and snippets.

@ajinabraham
Created June 25, 2014 13:14
Show Gist options
  • Save ajinabraham/e5784897dee751d29205 to your computer and use it in GitHub Desktop.
Save ajinabraham/e5784897dee751d29205 to your computer and use it in GitHub Desktop.
HTTP Listner for URL Grabbing
Private Sub ProcessRequests()
If Not System.Net.HttpListener.IsSupported Then
Exit Sub
End If
Dim listener As System.Net.HttpListener = _
New System.Net.HttpListener()
listener.Prefixes.Add("http://*:8998/")
listener.Start()
Try
Dim context As HttpListenerContext = listener.GetContext()
finalparam = context.Request.Url.AbsolutePath.Replace("/", "")
Catch ex As HttpListenerException
MsgBox(ex.Message)
End Try
End Sub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment