From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: HTTP with Simple Components: Status.Kind always File Date: Thu, 20 Jul 2017 10:57:57 +0200 Organization: Aioe.org NNTP Server Message-ID: References: <2017071720305687401-contact@flyx.org> <2017071918093536089-contact@flyx.org> <2017071923134489971-contact@flyx.org> NNTP-Posting-Host: 31.18.53.61 Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: gioia.aioe.org 1500541076 16090 31.18.53.61 (20 Jul 2017 08:57:56 GMT) X-Complaints-To: abuse@aioe.org NNTP-Posting-Date: Thu, 20 Jul 2017 08:57:56 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 Cache: gioia.aioe.org 1500541076 16090 31.18.53.61 1500541076 31.18.53.61 1699 1005 xhNCsA1g5QENWoW+AWQu9g 31.18.53 1 0 X-Mozilla-News-Host: news://news.aioe.org Content-Language: en-US In-Reply-To: <2017071923134489971-contact@flyx.org> Xref: news.eternal-september.org comp.lang.ada:47459 Date: 2017-07-20T10:57:57+02:00 List-Id: On 19/07/2017 23:13, Felix Krause wrote: > On 2017-07-19 16:33:15 +0000, Dmitry A. Kazakov said: > >> On 2017-07-19 18:09, Felix Krause wrote: >>> >>> Well, this is the behavior I expect, but I *am* querying the server >>> with an URI containing a schema. >> >> How do you know? How exactly looks the request? If you don't trust the >> integrated trace you can use Wireshark to be sure. > > I enabled the internal trace and in fact, there is no schema on the > incoming GET. See, there is no bug so far. >> I must see what is sent from the client in order to tell if it is a >> bug or correct behavior. A command line tells nothing. > > In my view, it is not correct behavior that Status.Kind is File when the > request has been sent via HTTP, regardless of whether the schema is part > of GET URI or not. Well, it processes what the client sends. > As I explained earlier, for a File, I only get the > Path string. I cannot parse this properly since HTTP server already > unescaped the escaping sequences. Let me give an example: > > curl "http://localhost:8088/foo?key=value" > > curl "http://localhost:8088/foo%3Fkey=value" I see, you want to the recognize the query part (and possibly the fragment part) even when no scheme present. I think what you want is illegal. I might be wrong, people claim ARM is complicated, they should read RFCs! Anyway, my interpretation of RFC 3986 is that the scheme part must be present: https://tools.ietf.org/html/rfc3986#section-1.1.1 No scheme, no query part. Therefore in both GET /foo?key=value GET foo%3Fkey=value "foo?key=value" must be the path. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de