mail-archives/mono-bugs/2008-September/078654.html

105 строки
3.7 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-bugs] [Bug 421827] New: HttpWebRequest drops cookies
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%20421827%5D%20New%3A%20HttpWebRequest%20drops%20cookies&In-Reply-To=">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Next" HREF="078744.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-bugs] [Bug 421827] New: HttpWebRequest drops cookies</H1>
<B>bugzilla_noreply at novell.com</B>
<A HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%20421827%5D%20New%3A%20HttpWebRequest%20drops%20cookies&In-Reply-To="
TITLE="[Mono-bugs] [Bug 421827] New: HttpWebRequest drops cookies">bugzilla_noreply at novell.com
</A><BR>
<I>Mon Sep 1 00:37:17 EDT 2008</I>
<P><UL>
<LI>Next message: <A HREF="078744.html">[Mono-bugs] [Bug 421827] HttpWebRequest drops cookies
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#78654">[ date ]</a>
<a href="thread.html#78654">[ thread ]</a>
<a href="subject.html#78654">[ subject ]</a>
<a href="author.html#78654">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE><A HREF="https://bugzilla.novell.com/show_bug.cgi?id=421827">https://bugzilla.novell.com/show_bug.cgi?id=421827</A>
Summary: HttpWebRequest drops cookies
Product: Mono: Class Libraries
Version: 2.0
Platform: Other
OS/Version: Linux
Status: NEW
Severity: Normal
Priority: P5 - None
Component: System
AssignedTo: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">mono-bugs at lists.ximian.com</A>
ReportedBy: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">Dax at daxxfiles.net</A>
QAContact: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">mono-bugs at lists.ximian.com</A>
Found By: ---
Description of Problem:
When downloading websites or files with HttpWebRequests, all cookies sent by
the site are simply dropped, leading to errors on many sites.
Steps to reproduce the problem:
Compile and run:
var hwr =
(HttpWebRequest)WebRequest.Create(&quot;<A HREF="http://tech.groups.yahoo.com/group/autoguiding/message/1&quot;">http://tech.groups.yahoo.com/group/autoguiding/message/1&quot;</A>);
hwr.CookieContainer = new CookieContainer();
var text = new StreamReader(hwr.GetResponse().GetResponseStream()).ReadToEnd();
Console.WriteLine(text.Contains(&quot;Your browser is not accepting our cookies.&quot;));
Actual Results:
&quot;True&quot;
Expected Results:
&quot;False&quot;
How often does this happen?
Every time.
--
Configure bugmail: <A HREF="https://bugzilla.novell.com/userprefs.cgi?tab=email">https://bugzilla.novell.com/userprefs.cgi?tab=email</A>
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Next message: <A HREF="078744.html">[Mono-bugs] [Bug 421827] HttpWebRequest drops cookies
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#78654">[ date ]</a>
<a href="thread.html#78654">[ thread ]</a>
<a href="subject.html#78654">[ subject ]</a>
<a href="author.html#78654">[ author ]</a>
</LI>
</UL>
<hr>
<a href="http://lists.ximian.com/mailman/listinfo/mono-bugs">More information about the mono-bugs
mailing list</a><br>
</body></html>