DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Wed, 22 Aug 2007 05:06:25 -0700,    posted on: microsoft.public.dotnet.framework.aspnet        back       

Thread Index
  1    Hari
          2    bruce barker


Accessing cookies from response object   
Hi,

I'm working on a winapp that sends a httprequest to a remote server.
The server actually sends back a cookie for login request. I have
searched a lot. I didn't find the right solution for accessing the
cookies from the response object.

I tried to check the cookie count on response object which shows
always as 0. Some one please tell me how to access cookies from a
httpresponse.


Thanks,
Hari
Date:Wed, 22 Aug 2007 05:06:25 -0700   Author:  

Re: Accessing cookies from response object   
you are looking in the right place. typically with cookie authenication, 
the site send a redirect to the login page, you code then posts the 
login form fields (if its asp.net, your code needs to post the viewstate 
from the render), and receives a cookie it can use on further request.

-- bruce (sqlwork.com)


Hari wrote:

> Hi,
> 
> I'm working on a winapp that sends a httprequest to a remote server.
> The server actually sends back a cookie for login request. I have
> searched a lot. I didn't find the right solution for accessing the
> cookies from the response object.
> 
> I tried to check the cookie count on response object which shows
> always as 0. Some one please tell me how to access cookies from a
> httpresponse.
> 
> 
> Thanks,
> Hari
> 
Date:Wed, 22 Aug 2007 11:21:31 -0700   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us