?
Solved

Receiving POST data using vb .net

Posted on 2010-01-13
2
Medium Priority
?
395 Views
Last Modified: 2013-12-17
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
0
Comment
Question by:alexking
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 26

Accepted Solution

by:
jar3817 earned 2000 total points
ID: 26345212
You basically need to implement a web server. Your app needs to listen on port tcp/80 and accept incoming connections. Here is a site that has source code in vb.net for a simple web server:

http://tomspeirs.com/vbwebserver/default.htm
0
 

Author Closing Comment

by:alexking
ID: 31676653
Thank you  - life now wears a sweeter smile!
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Utilizing an array to gracefully append to a list of EmailAddresses
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
In this video we show how to create a User Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Mailb…
In this video we show how to create a mailbox database in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Servers >> Data…
Suggested Courses
Course of the Month8 days, 14 hours left to enroll

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question