[Mono-bugs] [Bug 50530][Min] Changed - Authenticated POST requests do not work with HTTP/1.0 servers
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Thu, 19 Feb 2004 18:02:50 -0500 (EST)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by helge.hess@opengroupware.org.
http://bugzilla.ximian.com/show_bug.cgi?id=50530
--- shadow/50530 2004-02-19 14:23:43.000000000 -0500
+++ shadow/50530.tmp.9494 2004-02-19 18:02:50.000000000 -0500
@@ -1,13 +1,13 @@
Bug#: 50530
Product: Mono/Class Libraries
Version: unspecified
OS: SuSE 8.1
OS Details:
-Status: RESOLVED
-Resolution: FIXED
+Status: REOPENED
+Resolution:
Severity: Unknown
Priority: Minor
Component: System
AssignedTo: gonzalo@ximian.com
ReportedBy: helge.hess@opengroupware.org
QAContact: mono-bugs@ximian.com
@@ -375,6 +375,43 @@
we used 1.1
4. PreAuthentication is supported (btw, i tested your test case with
PreAuthenticate enabled under MS and it didn't send the header until
they don't get a 401. We do send the auth. header now).
Thanks you very much for reporting and for your patience ;-).
+
+------- Additional Comments From helge.hess@opengroupware.org 2004-02-19 18:02 -------
+OK, we are almost there :-) The code now correctly tries
+preauthentication, doesn't send the expect header for HTTP/1.0 and
+even the host header is fixed. Great!
+
+Now you submit:
+---snip---
+POST /RPC2 HTTP/1.0
+Content-Type: text/xml
+WWW-Authenticate: Basic aGVsZ2U6cnhyb290
+Content-Length: 30
+Connection: keep-alive
+Host: localhost:22022
+
+<?xml version='1.0'?>
+<a></a>
+---snap---
+
+Please: read the HTTP spec! "WWW-Authenticate" is a response header
+(for 401 responses), the proper request header is "Authorization".
+
+So you should submit:
+---snip---
+POST /RPC2 HTTP/1.0
+Content-Type: text/xml
+Authorization: Basic aGVsZ2U6cnhyb290
+Content-Length: 30
+Connection: keep-alive
+Host: localhost:22022
+
+<?xml version='1.0'?>
+<a></a>
+---snap---
+
+and I won't annoy you any longer :-)
+