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

C# Httpwebrequest load local stored cookie value.

Hello, I am making a screen scraper, in other programs I have been able to log into a site, get the cookie, submit a form and read the results.

However, this time I am in troubles, the site I need to log is using a local stored cookie or some info in it, since I can access OK from the IE, but when I log from the program I get some errors.

I am using Fiddler to check the cookie values and the cookie I get from the site in the screen scraper program is different from the values that use the local stored cookie.

I have made tests and if I delete the local stored cookie, I am not able to access, even from the IE. The site uses some kind of IP reservation and grants permissions to it on the first login, I think it stores some data in the cookie.

So what I need to know is how to LOAD o CREATE a cookie from a IE file.

Regards
Jun 20 '07 #1
4 4084
kenobewan
4,871 Expert 4TB
What are the errors?
Jun 21 '07 #2
What are the errors?
I get an "Invalid user or password", I think it has to be with the local stored cookie, because when you delete it from IE temp. folder you can not login even from IE.

I am sending the same request as detected from fiddler, my request and IE requests are the same except for the cookie.
Jun 21 '07 #3
Plater
7,872 Expert 4TB
Is it a session cookie?
Is it a string of digits? It's possible that it's encoded with say a time value or some other random seed type thing. (It's probably at very lest base64 encoded)
Jun 21 '07 #4
Is it a session cookie?
Is it a string of digits?
It's possible that it's encoded with say a time value or some other random seed type thing. (It's probably at very lest base64 encoded)
I have accesed the cookie file and it has this string:
"
IdCtrl
87383737A
subdomain.domain.com/
1024
3229943808
30223977
234922848
29863862
*
"

When I check in fiddler the cookie after I login in IE, I can see the variable:value that it loads, it loads always the same data.

If I delete the cookie, I have to ask the people from this site to reset my password, then I can log again and keep doing this.

Is this info helpful?
Jun 21 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: grz02 | last post by:
A question on html-forms: We have an application where users will get a CD with, among other things, some html-forms for them to fill in. When they click the submit-button, the data is...
1
by: Satinderpal Singh | last post by:
Hi everyone, We are using HttpWebRequest to create a request to a URI, which requires us to login first. In order to process all the transactions, first we have to login and get the cookie value...
10
by: Gregory A Greenman | last post by:
I'm trying to write a program in vb.net to automate filling out a series of forms on a website. There are three forms I need to fill out in sequence. The first one is urlencoded. My program is...
1
by: Satinderpal Singh | last post by:
Hi everyone, We are using HttpWebRequest to create a request to a URI, which requires us to login first. In order to process all the transactions, first we have to login and get the cookie value...
14
by: tomer | last post by:
Clear DayHello, I have implemented a download manger in .NET that overrides Internet Explorer's bult-in download manager. I using HttpWebRequest/Response to download the files. All is working...
2
by: Keith Patrick | last post by:
I'm trying to programmatically post data to another page within my ASP.Net app. Not POSTing is not an option (I can't store this data in my session, context, hidden fields, or anything else...I've...
11
by: Keith Patrick | last post by:
Could someone explain to me the relationship between these two classes? I am ripping my hair out trying to divert an HttpRequest to a new location via an HttpWebRequest, but I cannot get my...
0
by: Alex Papadimoulis | last post by:
Hey Group, I'm in the process of converting an ASP-based site to an ASP.NET site and built a control that wraps around an ASP page. The control simply does a GET to the same server to render the...
0
by: Alex Papadimoulis | last post by:
Hey Group, I'm in the process of converting an ASP-based site to an ASP.NET site and built a control that wraps around an ASP page. The control simply does a GET to the same server to render the...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...

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.