473,466 Members | 1,370 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

C# Httpwebrequest load local stored cookie value.

3 New Member
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 4101
kenobewan
4,871 Recognized Expert Specialist
What are the errors?
Jun 21 '07 #2
gcervantes
3 New Member
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 Recognized Expert Expert
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
gcervantes
3 New Member
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...
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.