No problem, yeah rather than do a flag I decided removing the check is
appropriate as similar classes like HTTP::Request and such don't bother
with a strict check.
If you want to try it out for me to make sure it works like you would
expect please clone the latest from this:
https://github.com/klkane/rest-client-perl
I am going to use it for a bit locally and will bump the version number and
put it on CPAN when I think its good and pending your feedback.
Thanks,
Kevin
On Wed, Feb 28, 2018 at 11:21 AM, perl@1ster.de via RT <
bug-REST-Client@rt.cpan.org> wrote:
Show quoted text> Queue: REST-Client
> Ticket <URL:
https://rt.cpan.org/Ticket/Display.html?id=124620 >
>
> Have been working with Vault's API:
>
https://www.vaultproject.io/api/secret/kv/index.html
>
> which has "LIST" as a method without further comment, so I assumed it is
> correct without further investigation.
>
> A flag to ignore the check would be fine, or allow any verbs when calling
> ->request( "METHOD", ...) explicitly instead of ->METHOD( ...)
>
> Thanks for the quick answer
>
> Markus
>
> -----Original Message-----
> From: Kevin L. Kane via RT [mailto:bug-REST-Client@rt.cpan.org]
> Sent: Mittwoch, 28. Februar 2018 17:11
> To: perl@1ster.de
> Subject: Re: [rt.cpan.org #124620] Please allow using the LIST HTTP method
>
> <URL:
https://rt.cpan.org/Ticket/Display.html?id=124620 >
>
> My bad, it seems that custom verbs have been allowed since HTTP 1.1...
>
> I think I will create a flag on the request method that that will cause it
> to ignore the valid verb check and send any verb you pass it.
>
> Let me look at it and get back to you.
>
> Thanks,
> Kevin
>
> On Wed, Feb 28, 2018 at 10:54 AM, Kevin L. Kane via RT <
> bug-REST-Client@rt.cpan.org> wrote:
>
> > Queue: REST-Client
> > Ticket <URL:
https://rt.cpan.org/Ticket/Display.html?id=124620 >
> >
> > Hi Markus,
> > Can you point me at the RFC or documentation that indicates LIST as
> > a valid HTTP request method? A cursory look at the HTTP 1/2 specs
> > don't have it.
> >
> > Thanks,
> > Kevin
> >
> > On Wed, Feb 28, 2018 at 10:40 AM, perl@1ster.de via RT <
> > bug-REST-Client@rt.cpan.org> wrote:
> >
> > > Wed Feb 28 10:40:58 2018: Request 124620 was acted upon.
> > > Transaction: Ticket created by perl@1ster.de
> > > Queue: REST-Client
> > > Subject: Please allow using the LIST HTTP method
> > > Broken in: (no value)
> > > Severity: (no value)
> > > Owner: Nobody
> > > Requestors: perl@1ster.de
> > > Status: new
> > > Ticket <URL:
https://rt.cpan.org/Ticket/Display.html?id=124620 >
> > >
> > >
> > > Hi,
> > >
> > > Please can REST::Client (latest version 273) be changed to allow the
> > > LIST method. Or possibly the check for methods can be relaxed in a
> > > way that
> > any
> > > not-so-common or new methods can be used.
> > >
> > > Thanks & Regards
> > > Markus
> > >
> >
> >
> >
> > --
> > Kevin L. Kane
> > kevin.kane at gmail.com
> >
>
>
>
> --
> Kevin L. Kane
> kevin.kane at gmail.com
>
--
Kevin L. Kane
kevin.kane at gmail.com