On 04/06/2011 15:51, Gisle_Aas via RT wrote:
Show quoted textWell... more common than CONNECT....?
I have found myself doing a lot of AJAX programming in the past few
years, for which I seem to need to sub-classing a lot of common Perl
modules, to a greater or lesser degree.
Show quoted text> Did you expect to pass Content to OPTIONS? If so, in what format?
I have never found a need to, no, though the spec does seem to call for
such support. For simplicity, I've been using your
_simple_request('OPTIONS'...) in my private sub-classes, though doing so
is incorrect.
Show quoted text> An interesting issue is that there is no way to construct an "OPTIONS *" request with LWP.
> HTTP::Request needs an absolute URI with the method.
>
> So, we would have to make it:
>
> OPTIONS
http://example.com/*
>
> and then turn "/*" into "*". It would then not be any way to ask for the OPTIONS of the "/*"
> resource.
I am not sure how OPTIONS * could function - do not all URIs have to be
absolute when issued by the client? My reading of the spec is that the
asterisk in question would indeed be as your example.com/* above: I
cannot see how it could be otherwise: I read that any after the
hostname/port, up to the fragment/query string/path-info, is path part,
and has to be delimited from the hostname/port by an oblique.
Thanks
Lee