[Webkit-unassigned] [Bug 3812] XMLHttpRequest: PUT, DELETE, HEAD and all other methods but POST actually do a GET

bugzilla-daemon at opendarwin.org bugzilla-daemon at opendarwin.org
Tue Feb 28 11:05:47 PST 2006


http://bugzilla.opendarwin.org/show_bug.cgi?id=3812


ap at nypop.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Attachment #6776|                            |review?
               Flag|                            |




------- Comment #6 from ap at nypop.com  2006-02-28 11:05 PDT -------
Created an attachment (id=6776)
 --> (http://bugzilla.opendarwin.org/attachment.cgi?id=6776&action=view)
proposed patch

There are some differences between this implementaion and Firefox:
1) For null data, "Content-Length: 0" header is sent (isn't sent in Firefox).
Looks like better behavior to me; besides, I don't think we have a choice,
because this header is added by NSURLConnection.
2) HEAD is not implemented - there seems to be a crashing bug in
NSURLConnection, <rdar://4460899>.
3) After #2 is fixed, we won't be sending a body in HEAD requests, just like we
don't send it in GET ones. Firefox ignores the body in GET requests, but sends
it in HEAD ones, which looks like a bug to me.

Also fixed a bug: send(null) was actually sending characters "null" instead of
an empty body.


-- 
Configure bugmail: http://bugzilla.opendarwin.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list