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

How can I access the cookie specific to a URI

Hi, I'm using HTTPWebRequest/HTTPWebResponse to automate accessto a website. To bypass the authentication pages, I'd like toappend the PC stored cookie in my initial"myHttpWebRequest.GetResponse()" call. Using this I am hoping tothen directly access specific data in the website. I'm fairlynew to some of this but it seems I need to attach the cookiestored on the client PC to the HTTP GET request. (I.E. does it.Does anyone know how to programatically?)

Thanks

--------------------------------
From: fred Oleary

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>0Ox2XgTilUirAz72wW74IA==</Id>
Nov 18 '05 #1
1 942
fred Oleary via .NET 247 wrote:
Hi, I'm using HTTPWebRequest/HTTPWebResponse to automate access to a website. To bypass the authentication pages, I'd like to append the PC stored cookie in my initial "myHttpWebRequest.GetResponse()" call. Using this I am hoping to then directly access specific data in the website. I'm fairly new to some of this but it seems I need to attach the cookie stored on the client PC to the HTTP GET request. (I.E. does it. Does anyone know how to programatically?)


You should be able to add the cookie header to the collection of HTTP
headers that you get from the HttpWebRequest.Headers properties.

--
mikeb
Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Frnak McKenney | last post by:
Back when computer dinosaurs roamed the earth and the precursors to today's Internet were tiny flocks of TDMs living symbiotically with the silicon giants, tracking access to data processing...
5
by: brettr | last post by:
When I reference document.cookie, there is a long string of key=value; pairs listed. I may have 100 hundred cookies on my hard drive. However, most only have one key=value pair. Does the...
23
by: Phil Powell | last post by:
// OBTAINED FROM http://www.javascripter.net/faq/settinga.htm // NOTE THAT IF YOU SET days TO -1 THE COOKIE WILL BE SET TO YESTERDAY AND THUS EXPIRE function setCookie(name, value, days, docObj)...
5
by: =?Utf-8?B?YzY3NjIyOA==?= | last post by:
Hi all, Is there an easier way to handle that? I used Javascript to handle this when our two domains are hosted on two different servers(on different networks) and our search engine marketing...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...

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.