473,394 Members | 1,640 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

How to submit a web form from a windows app?

Is it possible to submit a web form from a windows application using vb.net?
Can anyone point me to an example on how I might accomplish this?

Thanks

Ken
Dec 23 '05 #1
7 1574
Ken,

It is depending from the version and there are a lot of tools, so let us
start to ask you .

What version is VB.Net (framework type and version of VBNet itself)
What kind of webserver

Cor

"Ken Sturgeon" <ak********@charter.net> schreef in bericht
news:uh**************@TK2MSFTNGP15.phx.gbl...
Is it possible to submit a web form from a windows application using
vb.net? Can anyone point me to an example on how I might accomplish this?

Thanks

Ken

Dec 24 '05 #2
Doh,

I overreaded the words "from a windows" application.

You can forever make your own FTP. In VB2005 are there standard tools for
that. While those are in 2002/2003 as well however harder to find.

If you cannot do it with FTP than you have to look for HTTP response and
request on MSDN

Cor
Dec 24 '05 #3
Yes you can

Dim Myweb As New WebClient

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

Dim byteArray As Byte() =
System.Text.Encoding.ASCII.GetBytes("yourpostkey=y ourpostvalue")

Dim responseArray As Byte() =
Myweb.UploadData("http://www.dummyadress.com/dummypage.webextension",
"POST", byteArray)

Dim test as string =System.Text.Encoding.ASCII.GetString(responseArra y)

test now contains the reponse in a string from the webpage you posted to

regards

Michel Posseth [MCP]

"Ken Sturgeon" <ak********@charter.net> wrote in message
news:uh**************@TK2MSFTNGP15.phx.gbl...
Is it possible to submit a web form from a windows application using
vb.net? Can anyone point me to an example on how I might accomplish this?

Thanks

Ken

Dec 24 '05 #4
"Ken Sturgeon" <ak********@charter.net> schrieb:
Is it possible to submit a web form from a windows application using
vb.net? Can anyone point me to an example on how I might accomplish this?


<URL:http://dotnet.mvps.org/dotnet/code/net/#CookieRequest>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Dec 24 '05 #5
Thanks to all for your help. I haven't quite gotten this to work but at
least you've got me pointed in the right direction.

Thanks again,
Ken

"Ken Sturgeon" <ak********@charter.net> wrote in message
news:uh**************@TK2MSFTNGP15.phx.gbl...
Is it possible to submit a web form from a windows application using
vb.net? Can anyone point me to an example on how I might accomplish this?

Thanks

Ken

Dec 30 '05 #6
Ken ,

If you need aditional help feel free to ask , try some of the example code
and if it doesn`t forfill your needs or you can`t get it running post the
trouble code in a new thread with the explanation why or what isn`t working
and we can have a look at it

I have used the described technique ( example of Herrfried and Mine ) manny
times for access to my own and third party websites without problems, it is
just a mather of knowing the right parameters the website is expecting wich
you can find in the pages HTML source ( wich you can see in the webbrowser )
..
regards

and wishing you and your family or anyone who reads this thread a happy
new year

Michel Posseth

"Ken Sturgeon" <ak********@charter.net> wrote in message
news:uN**************@TK2MSFTNGP10.phx.gbl...
Thanks to all for your help. I haven't quite gotten this to work but at
least you've got me pointed in the right direction.

Thanks again,
Ken

"Ken Sturgeon" <ak********@charter.net> wrote in message
news:uh**************@TK2MSFTNGP15.phx.gbl...
Is it possible to submit a web form from a windows application using
vb.net? Can anyone point me to an example on how I might accomplish this?

Thanks

Ken


Dec 31 '05 #7
Thank you very much for the offer Michael. I may very well impose on your
generosity in the future as I've kind of put this particular aspect of my
project on the back burner to work other pieces of it.

Ken

"m.posseth" <mi*****@nohausystems.nl> wrote in message
news:OV**************@TK2MSFTNGP14.phx.gbl...
Ken ,

If you need aditional help feel free to ask , try some of the example code
and if it doesn`t forfill your needs or you can`t get it running post the
trouble code in a new thread with the explanation why or what isn`t
working and we can have a look at it

I have used the described technique ( example of Herrfried and Mine )
manny times for access to my own and third party websites without
problems, it is just a mather of knowing the right parameters the website
is expecting wich you can find in the pages HTML source ( wich you can see
in the webbrowser ) .
regards

and wishing you and your family or anyone who reads this thread a happy
new year

Michel Posseth

"Ken Sturgeon" <ak********@charter.net> wrote in message
news:uN**************@TK2MSFTNGP10.phx.gbl...
Thanks to all for your help. I haven't quite gotten this to work but at
least you've got me pointed in the right direction.

Thanks again,
Ken

"Ken Sturgeon" <ak********@charter.net> wrote in message
news:uh**************@TK2MSFTNGP15.phx.gbl...
Is it possible to submit a web form from a windows application using
vb.net? Can anyone point me to an example on how I might accomplish
this?

Thanks

Ken



Jan 2 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Paul Oakfleet | last post by:
The script below will disable Submit button until user accept terms, and will redirect user to another page after clicking on Submit button. The script seems to work fine on my PC (Windows XP,...
2
by: Terence Parker | last post by:
How does one go about submitting a form with a link - but submitting it to a new window AND to a page different to that described within the action="" option of the <form> tag? Say, for example,...
2
by: Margaret Werdermann | last post by:
Hi all: I'm having a nasty time with a particularly difficult piece of code and was hoping someone might be able to help me. I have a FormMail form that originally worked perfectly. Then, I...
6
by: HD | last post by:
Hi. I have an asp page with radio buttons and a combobox... when the user clicks a radio button, I want the form to submit so I can execute the ASP code in order to change the list shown in the...
4
by: Dmitry Korolyov [MVP] | last post by:
When we use btnSubmit.Attributes = "javascript: this.disabled=true;" to make the button disabled and prevent users from clicking it again while form data still posting, there is no longer...
6
by: Boldgeek | last post by:
I am trying to develop an app that will allow automatic updating of a web form which uses multipart/form-data enctype (as it MIGHT be sending an image) I have an example form, which when...
1
by: gbezas | last post by:
Hi All, I have added an event handler to redirect form.submit() to a newSubmit() method that I have defined (which does some additional processing before submitting the form). Additionally I...
1
by: anudip | last post by:
Hi, My requirement is, i want to submit a webpage from .net windows application. For example, The windows application should contain the code/functionality by which, when i will click the...
11
by: V S Rawat | last post by:
using Javascript, I am opening a web-based url in a popup window. MyWin1=Window.Open(url, "mywindow") There is a form (form1) in the url in that popup window, I need to submit that form. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.