473,385 Members | 1,922 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.

httpwebresponse not populating the cookies cookiecollection class

I'm not sure that this is the best forum for this question since I am not
really hitting a webservice to do this, but just using http req/resp model to
retrieve data.

I have a website I am hitting using https protocol. I have the authorization
and security working well but am having problems getting the cookiecollection
in the httpwebresponse returned from the server to populate. It always has 0
cookies in the collection. Here is the raw html response I am receiving back
from the site...

HTTP/1.1 200 OK
Date: Mon, 24 Mar 2008 14:34:14 GMT
Server: Apache
Content-Length: 97
Set-Cookie:
JSESSIONID=Hn8JWyzQcv3CEl2C4hcDj4nI5YeKpyPXc3DAIbG wN2BYyD14si3U!-147048524!-1592077740!7001!7279; path=/
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: text/html

<HTML>
<SCRIPT LANGUAGE="JavaScript">
window.open('/buspart/crepage','FOOBAR')
</SCRIPT>
/<HTML>

My first impulse was to just parse the Set-Cookie portion of the header
myself but I am thinking there is probably a better way. Any ideas?

Mar 24 '08 #1
0 1214

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

Similar topics

0
by: Michael Evanchik | last post by:
Hello all, since i wanted to use ssl and its seems easy to do so with this object. Im trying to login to a webserver (aol) for this example. But for some reason, im packet sniffing with ethreal...
0
by: Prasanna Padmanabhan | last post by:
I get an empty CookieCollection when I do HttpWebResponse.Cookies. However HttpWebResponse.Headers returns the correct list of cookies (represented as a comma-separated string) in the reponse. ...
1
by: Ravi | last post by:
Hi , i am trying to pass the same session Id to all the webrequest, but sometimes the response.cookies returns zero and sometimes one. is this to do something with cookies expire. In this sample...
6
by: sd | last post by:
Hello: I have smart client app which needs to access a "forms authentication" protected website for certain functions. Thre credentials used to login to smart client are the same as the...
3
by: Thaynann | last post by:
I ham tryin to access a website, the first time i send a GET to display the first page it displays the HTML code, but always with text "Enable Cookies In Your Browser", is there a way to have it...
1
by: Prasanna Padmanabhan | last post by:
I am writing a simple HTTP Client in .NET. I make an HTTP Request and examine the response. I get an empty CookieCollection when I do HttpWebResponse.Cookies. However HttpWebResponse.Headers...
16
by: Cheung, Jeffrey Jing-Yen | last post by:
I have a windows form application that generates a request, downloads an image, and waits the user to enter in login info. Unfortunately, this image is dynamic and based on session data. I have...
6
by: Mike | last post by:
Hi, I've been using httpwebrequest / xmlserverhttp to log into a website via POST. I've received all the response headers back, some of which contain the "set-cookie" headers. When...
1
by: Mike Markiewicz | last post by:
I would like to use WebClient on a page that requires a login before it can be viewed. I want to be able to log in with IE and run my application from there. Is there a way, using...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: 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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...

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.