Link to home
Start Free TrialLog in
Avatar of alexking
alexkingFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Receiving POST data using vb .net

I want to send data between two computers connected to the Web.
Sending the data seems easy using POST, e.g.:

Dim web As New System.Net.WebClient()

        web.Headers.Add("Content-Type", "application/x-www-form-urlencoded")

        Dim d As Byte() = System.Text.Encoding.ASCII.GetBytes("SEARCHSTRING=test")
        Dim res As Byte() = web.UploadData("http://111.111.111.111/search", "POST", d)

How do I write a VB routine to listen for and receive this POST?

(I want to reply with a short text string)

Many Thanks.

JAK
ASKER CERTIFIED SOLUTION
Avatar of jar3817
jar3817

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of alexking

ASKER

Thank you  - life now wears a sweeter smile!