Post to a Form from VB.NET?

  • Thread starter Thread starter Smoke
  • Start date Start date
S

Smoke

Does anyone has any example on how to make a POST Form to a page using VB.net (not asp.net) ?

Thanks...
 
You will have to be more specific in your question. You do not want to use
ASP .NET? How are you planning for your VB .NET program going to interact
with a web site/server in the absence of ASP .NET?
 
I want to post data to a specific page and read the value as a webrequest response, or as a string, or save it a stream, or whatever
make sense?
 
there is an entire web response and web class in .NET it maybe useful for
you. one place to start looking is the System.Net namespace it has most of
what you will need to do something like this

Smoke said:
I want to post data to a specific page and read the value as a webrequest
response, or as a string, or save it a stream, or whatever
 
I did tryied that, and i was able to request a webpage or and post data to a form using the GET method (passing parameters in the
url) but not able to understand how im suposed to POST data to a page, how do i define which items i want to post? the names and the
value pairs?

Suposed i have http://internet.com/forum.asp then i want to call that page, but posting data, for example username=smoke
password=blah, how im suposed to post those values if not in the url?

is there a way?

thanks for the help...
 
i dont think this is what im looking for, is it?
Look my other reply comments please

Thanks :)
 
Smoke said:
i dont think this is what im looking for, is it?
Look my other reply comments please

Yes, its exactly what you are looking for. Its a full HTTP client. Not every
demo does exactly what every user wants, but the component of course does
much more than demos.

The HTTP client component supports .POST as well as GET and others.


--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Develop ASP.NET applications easier and in less time:
http://www.atozed.com/IntraWeb/
 
Smoke said:
I did tryied that, and i was able to request a webpage or and post data
to a form using the GET method (passing parameters in the url) but not

GET isnt exactly the same as post but is similar.
able to understand how im suposed to POST data to a page, how do i
define which items i want to post? the names and the value pairs?

Yes, name and value pairs. Just call the POST method instead and either pass
them in as a list of strings, or a stream.
Suposed i have http://internet.com/forum.asp then i want to call that
page, but posting data, for example username=smoke password=blah, how im
suposed to post those values if not in the url?

The Post method takes an extra argument for the parameters.


--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Get your ASP.NET in gear with IntraWeb!
http://www.atozed.com/IntraWeb/
 
Back
Top