G
Guest
Hi,
I'm building a Windows Forms application that parses a variety of web pages.
The web page structure generally includes a search page with form fields and
a "submit" button, and clicking submit loads the results page we're
interested in parsing.
Thanks to some help from here and the MSDN library, I've got the actual
parser working great. I parse the search page for form fields, then create a
WebRequest and write a RequestStream with all the form variables, then I
retrieve a ResponseStream with all the data I need.
Now we've decided it would be nice to give users the option to display the
results page in the web browser, both to confirm the data and because there
are links to other resources on the results page.
I tried just dumping the text into a temp file, but the graphics, styles and
relative links don't come out right. What I would like to do is launch the
web browser and go to the actual results page.
What I need to know is...
1. How do I launch the web browser and go to a specific URI from within a
Windows Forms application?
2. How can I post form data as part of the request?
Thanks,
Adam
USING: VB.NET, Framework 1.1
I'm building a Windows Forms application that parses a variety of web pages.
The web page structure generally includes a search page with form fields and
a "submit" button, and clicking submit loads the results page we're
interested in parsing.
Thanks to some help from here and the MSDN library, I've got the actual
parser working great. I parse the search page for form fields, then create a
WebRequest and write a RequestStream with all the form variables, then I
retrieve a ResponseStream with all the data I need.
Now we've decided it would be nice to give users the option to display the
results page in the web browser, both to confirm the data and because there
are links to other resources on the results page.
I tried just dumping the text into a temp file, but the graphics, styles and
relative links don't come out right. What I would like to do is launch the
web browser and go to the actual results page.
What I need to know is...
1. How do I launch the web browser and go to a specific URI from within a
Windows Forms application?
2. How can I post form data as part of the request?
Thanks,
Adam
USING: VB.NET, Framework 1.1