> After a brief Google session, I can only find the following:
>
[quoted text clipped - 4 lines]
> with it, because I need "silent authentication" to the website with IE.
> How would I do this?
I did this recently, but kind of "hackish" and I'm not sure this was even
the right way. After digging and not finding anything either, I found out
that you can navigate all the elements of the page on the page load event.
So I found all the fields I needed to fill in, then found the submit button
and invoked that click event for that button. It's been working for about a
year without any issues so far.
Trammel - 07 Mar 2008 01:00 GMT
>> After a brief Google session, I can only find the following:
>>
[quoted text clipped - 11 lines]
> button and invoked that click event for that button. It's been working for
> about a year without any issues so far.
Untested idea: Cant you just connect to the webserver using sockets/stream,
send the login info then write the returned cookie to the IE folder &
startup/refresh IE?
The string- to send to the webserver would be like:
strPostLogin "POST /login.php HTTP/1.1" & vbcrlf & "Host: yoursite.com" &
vbcrlf & "Content-Type: application/x-www-form-urlencoded" & vbcrlf &
"Content-Length: 42" & vbcrlf & "user=onlyme&pass=youdontwannadoitlikethat!"
& vbcrlf & vcrlf
Aaron Smith - 07 Mar 2008 13:24 GMT
>>> After a brief Google session, I can only find the following:
>>>
[quoted text clipped - 21 lines]
> "Content-Length: 42" & vbcrlf &
> "user=onlyme&pass=youdontwannadoitlikethat!" & vbcrlf & vcrlf
That might be very possible. I didn't even think of doing that when I did
what I had to do. It's worth exploring further.
Tom Shelton - 07 Mar 2008 15:09 GMT
>>>> After a brief Google session, I can only find the following:
>>>>
[quoted text clipped - 24 lines]
> That might be very possible. I didn't even think of doing that when I did
> what I had to do. It's worth exploring further.
Have you looked at System.Net.WebClient?
Tom Shelton
> After a brief Google session, I can only find the following:
>
[quoted text clipped - 4 lines]
> with it, because I need "silent authentication" to the website with IE.
> How would I do this?
These may help:
http://support.microsoft.com/kb/311294
http://www.codeproject.com/KB/cs/multipart_request_C_.aspx