Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the CGI CPAN distribution.

Report information
The Basics
Id: 69958
Status: rejected
Priority: 0/
Queue: CGI

People
Owner: Nobody in particular
Requestors: ojoa [...] vwd.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Feature Request
Date: Tue, 02 Aug 2011 11:16:55 +0200
To: bug-CGI.pm [...] rt.cpan.org
From: Oliver Joa <ojoa [...] vwd.com>
Hi, it is more a Feature-Request than a Bug-Report. I want to make a DELETE Request and add a Body. When making a PUT/POST Request there is the posibility to get the Body bei POSTDATA or PUTDATA. What about DELETEDATA? I read in the RFC 2616 about HTTP/1.1 and didn't find anything which forbids it. So what do you think? Is it something you can add to the Code? Thanks a lot Oliver Joa
CC: undisclosed-recipients:;, Oliver Joa via RT <bug-cgi.pm [...] rt.cpan.org>
Subject: Re: [rt.cpan.org #69958] Feature Request
Date: Tue, 02 Aug 2011 08:32:14 -0400
To: bug-CGI.pm [...] rt.cpan.org
From: Mark Stosberg <mark [...] summersault.com>
Show quoted text
> it is more a Feature-Request than a Bug-Report. I want to make a DELETE > Request and add a Body. When making a PUT/POST Request there is the > posibility to get the Body bei POSTDATA or PUTDATA. What about > DELETEDATA? I read in the RFC 2616 about HTTP/1.1 and didn't find > anything which forbids it. So what do you think? Is it something you can > add to the Code?
Oliver, Could you provide an example of how you would use this? Also, could you cite some other frameworks that provide this? Mark
Subject: Re: [rt.cpan.org #69958] Feature Request
Date: Tue, 02 Aug 2011 15:42:44 +0200
To: bug-CGI.pm [...] rt.cpan.org
From: Oliver Joa <ojoa [...] vwd.com>
Hi, On 02.08.2011 14:32, mark@summersault.com via RT wrote: [...] Show quoted text
> Could you provide an example of how you would use this? Also, could you > cite some other frameworks that provide this?
we need the request-body in the DELETE-method for building a sellOrder on a depot-management-system. This is an abstract function and we need full xml-objectData in the body to handle this workflow. In background there will we startet much more actions, so we could not only make a plain delete without further quote-, quantitydata and notes. [...] Thanks Olli
Subject: Re: [rt.cpan.org #69958] Feature Request
Date: Tue, 02 Aug 2011 09:48:46 -0400
To: bug-CGI.pm [...] rt.cpan.org
From: Mark Stosberg <mark [...] summersault.com>
Show quoted text
>> Could you provide an example of how you would use this? Also, could you >> cite some other frameworks that provide this?
> > we need the request-body in the DELETE-method for building > a sellOrder on a depot-management-system. > This is an abstract function and we need full xml-objectData > in the body to handle this workflow. In background there will we startet > much more actions, so we could not only make a plain delete > without further quote-, quantitydata and notes.
Thanks. And can you cite examples of other frameworks that provide this feature? (Direct documentation links are preferred). Mark
This issue has been copied to: https://github.com/leejo/CGI.pm/issues/87 please take all future correspondence there. This ticket will remain open but please do not reply here. This ticket will be closed when the github issue is dealt with.
Rejecting. I've had a look and, whilst trivial to add, it breaks backwards compatibility horribly as the DELETE support in CGI.pm currently allows url parameters in the query string. Moving them to be in the body will no doubt break code for lots of users. The nature of the request you are making ("building a sellOrder") sounds more like a PUT or a POST than a DELETE anyway. Since there is still no definitive spec on sending content with GET or DELETE and different frameworks are prone to do different things, ignoring the content in most cases, i'm leaving this as is.