Find Jobs
Hire Freelancers

C# Website Login & webbrowser1 navigate problem // EASY

$30-250 USD

In Progress
Posted about 11 years ago

$30-250 USD

Paid on delivery
Hello, I have an app which has 1 webbrowser, 1 richtextbox, 1 button. I am using this code: CookieCollection cookies = new CookieCollection(); HttpWebRequest request = (HttpWebRequest)[login to view URL]("[login to view URL]"); [login to view URL] = new CookieContainer(); [login to view URL](cookies); //Get the response from the server and save the cookies from the first request.. HttpWebResponse response = (HttpWebResponse)[login to view URL](); cookies = [login to view URL]; string getUrl = "[login to view URL]"; string postData = [login to view URL]("login={0}&password={1}&op=login", "XXXX", "XXXX"); HttpWebRequest getRequest = (HttpWebRequest)[login to view URL](getUrl); [login to view URL] = new CookieContainer(); [login to view URL](cookies); //recover cookies First request [login to view URL] = [login to view URL]; [login to view URL] = "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/[login to view URL] Safari/535.2"; [login to view URL] = true; [login to view URL] = [login to view URL]; [login to view URL] = true; [login to view URL] = "application/x-www-form-urlencoded"; byte[] byteArray = [login to view URL](postData); [login to view URL] = [login to view URL]; Stream newStream = [login to view URL](); //open connection [login to view URL](byteArray, 0, [login to view URL]); // Send the data. [login to view URL](); HttpWebResponse getResponse = (HttpWebResponse)[login to view URL](); using (StreamReader sr = new StreamReader([login to view URL]())) { string sourceCode = [login to view URL](); [login to view URL] = sourceCode; } [login to view URL]("[login to view URL]"); But the webbrowser1 doesn't navigate to [login to view URL] , because its asking the user / pass again, however in the richtextbox i can see that i am logged in.. maybe navigate must use a cookie as well? thanks
Project ID: 4394574

About the project

4 proposals
Remote project
Active 11 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
Ready to start!
$30 USD in 0 day
4.8 (3 reviews)
2.8
2.8
4 freelancers are bidding on average $48 USD for this job
User Avatar
Experienced C# programmers ready to help you.
$30 USD in 3 days
5.0 (4 reviews)
3.2
3.2
User Avatar
Ready to start now, Please contact me.
$100 USD in 3 days
0.0 (0 reviews)
0.0
0.0
User Avatar
I am ready to work with.
$30 USD in 0 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of HUNGARY
Budapest, Hungary
5.0
13
Member since Jul 3, 2012

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.