Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / VB.NET / October 2004

Tip: Looking for answers? Try searching our database.

Maintain Web Session and Cookies

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Manuel - 29 Oct 2004 04:04 GMT
I thought this would be simple:

In my VB.NET application, make and instance of a web control, post a
username/password to a website, keep "browsing" the website with the
control, extracting information about the web pages, and the Session and
cookies will be alive for as long as I'm posting back to the web site.

Boy was I wrong!

The website (not mine btw) uses a combination of session variables and
cookies to validate the user.

I've tried with an HttpRequest and HttpResponse objects to no avail. I
can't get them to behave like a normal browser, maintaining the session.

The best I could do was to create an instance of axWebBrowser and
"manually" browse the web pages. I do this using the DOM, filling the
textboxes (calling them by name) and doing  TheSubmitButton.Click()

Using the axWebBrowser, how do I download a file stored on the web?

Does anyone have a better solution? Throw me a bone here! Any comment
will be appreciated.
Jim Hubbard - 30 Oct 2004 08:58 GMT
This doesn't use the axWebbrowser, but it accomplishes the same thing.

http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=2c986940-
dd15-4498-b532-95eba7e44e9e


Jim Hubbard

>I thought this would be simple:
>
[quoted text clipped - 19 lines]
> Does anyone have a better solution? Throw me a bone here! Any comment will
> be appreciated.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.