473,383 Members | 1,864 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,383 software developers and data experts.

WebBrowser login fails--sort of--on 1st attempt !

I am using a WebBrowser control, and I login using this code:

byte[] postArgs = System.Text.Encoding.ASCII.GetBytes ( LOGIN_PARAMETERS );

mainWebBrowser.Navigate ( LOGIN_URI, null, postArgs, "" );

mainControl.SelectTab ( browserTab );

mainControl.Focus ();

It appears to login successfully, but any link I click on in the logged in
page generates "Your validation has expired." and a demand to login.

Now, this only happens the first time I try to login. All subsequent
attempts work as expected.

OTH, if manually go to the browser tab, access the main page of that site
first, then login as above, all works perfectly from there.

Could it have to do with URL rewriting and cookies?

Thx, Jess
Jan 22 '06 #1
0 1000

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

Similar topics

5
by: Noozer | last post by:
I've got a WebBrowser control (AxBrowse - VCMAXB.DLL) and I'm having a few difficulties with it. Just looking for a few pointers, not whole solutions here. I've tried looking at the MSDN help files...
0
by: Noah Coad [MVP .NET/C#] | last post by:
How does one gain access to the WebBrowser (SHDocVw) control to the extent of the one used in VS.NET Start Page? I'm familiar with using the control directly, I've written a tutorial on it, and...
0
by: gene kelley | last post by:
I have a WindowForms app that has a WebBrowser control which works as expected except for navigating to sites that require user/password. In IE, a given URL in this catagory returns the IE login...
2
by: M R | last post by:
i am writing an application (C#) that automates the process of loading a web page, login into a site and then simulates the navigation of the site. the program uses a winform with a webBrowser...
1
by: =?Utf-8?B?Sm9obiBCdW5keQ==?= | last post by:
Been a while since playing in .NET. What I want to do is common, but I can't find a straightforward anwer. I have a webbrowser1 that opens a url, I want to be able to log into this automatically...
1
by: Piratenaapje | last post by:
I'm currently developing a Google Reader Notifier for linux (check it out at http://grnotify.sf.net if you're interested), and need to be able to open the users default webbrowser and login to google...
0
by: greekcandyman | last post by:
I'm trying to create a program to automatically log me in to Myspace. Yes, I am too lazy to login myself! And sorry, but I'm not exactly using a WebBrowser, but something that's name is "SHDocVw"...
4
by: kimiraikkonen | last post by:
Hi, Just to test, i placed a simple webbrowser to login a site, this site has no problems and has same error with IE6 SP2 but it's suppressed as well and no problem with Firefox browser, but using...
0
by: scottietrek | last post by:
Ok i am able use a proxy with basic auth but after i navigate to the page i want to click a link but when i do i get the login information. the page behind does change but but i get the auth window....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.