Created
June 25, 2014 13:14
-
-
Save ajinabraham/e5784897dee751d29205 to your computer and use it in GitHub Desktop.
HTTP Listner for URL Grabbing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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