Home All Groups Group Topic Archive Search About

User form to generate GET or POST

Author
28 Jun 2005 9:25 PM
Ken K
I need to get some simple text input from the user with a vb.net form(not
asp.net).
Using the input value I need to generate a GET or a POST to a web server.

Considering I build a vb.net form, put a few fields on it to collect the
information, then concat the string I need for the web server, how do I
submit a GET or POST from vb.net?  Is there a method for this?

It may be sort of a dumb question but I don't know how to get her done.
Thanks,

Author
28 Jun 2005 10:40 PM
Tom Shelton
In article <92EABAAE-4295-4D24-A1EF-DBBA3794B***@microsoft.com>, Ken K wrote:
> I need to get some simple text input from the user with a vb.net form(not
> asp.net).
> Using the input value I need to generate a GET or a POST to a web server.
>
> Considering I build a vb.net form, put a few fields on it to collect the
> information, then concat the string I need for the web server, how do I
> submit a GET or POST from vb.net?  Is there a method for this?
>
> It may be sort of a dumb question but I don't know how to get her done.
> Thanks,
>
>
>

Look at the System.Net.WebRequest object.  There is an example in the
docs for this class would probably help you out.

--
Tom Shelton [MVP]