Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > .NET Languages
You last visited: Today at 03:12

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[C#] Need help

Discussion on [C#] Need help within the .NET Languages forum part of the Coders Den category.

Reply
 
Old   #1
 
LanternBoy's Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 65
Received Thanks: 17
Post [C#] Need help

So i got an application that logs in to a website using HttpWebRequest. After it has done that i would like to open that site in a normal browser while still logged in, is that possible?
LanternBoy is offline  
Old 04/18/2013, 23:30   #2
 
Kraizy​'s Avatar
 
elite*gold: 0
The Black Market: 471/0/0
Join Date: Apr 2010
Posts: 9,696
Received Thanks: 1,810
Well, don't know if it works but try something like this:
PHP Code:
webBrowser.Document.Cookie request.CookieContainer.GetCookies(uri
Edit: Take a look at
Kraizy​ is offline  
Thanks
1 User
Old 04/19/2013, 01:07   #3
 
elite*gold: 100
Join Date: Aug 2005
Posts: 595
Received Thanks: 208
Depends what you mean with a normal Browser ? Within your application or within another Browser on the System ?

For the first one, what kraizy posted should work
The Seconde one is by far more tricky, you would need to parse the data from the cookie container and then use unique methods for the different browsers availible
dready is offline  
Old 04/19/2013, 12:26   #4
 
LanternBoy's Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 65
Received Thanks: 17
I did mean a browser on the system such as Firefox, but i might aswell just use the other one, if it's too hard.
LanternBoy is offline  
Old 04/19/2013, 15:04   #5
 
elite*gold: 100
Join Date: Aug 2005
Posts: 595
Received Thanks: 208
for the ie you can use the windows api to set the cookie
for firefox you need to connect to the sql db where firefox saves them and add them there

other browsers i dont know sorry,, you will have to look this up by yourself
dready is offline  
Reply




All times are GMT +2. The time now is 03:12.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.