From: Felix Krause <contact@flyx.org>
Subject: Re: HTTP with Simple Components: Status.Kind always File
Date: Wed, 19 Jul 2017 18:09:35 +0200
Date: 2017-07-19T18:09:35+02:00 [thread overview]
Message-ID: <2017071918093536089-contact@flyx.org> (raw)
In-Reply-To: okj8fj$8ue$1@gioia.aioe.org
On 2017-07-17 20:59:32 +0000, Dmitry A. Kazakov said:
>
> If I correctly understand the issue, the HTTP request line must contain
> a schema.
>
> If you take a look into the source, parsing gets the method (e.g. GET)
> then it checks (gnat-sockets-connection_state_machine-http_server.adb,
> 1540):
>
> if Request (Pointer) = '*' then
> ...
> elsif Request (Pointer) = '/' then
> ...
> else
> ...
> end if;
>
> The first does nothing, the second creates Kind => File, the third
> creates Kind => URI. So Kind = File should be when the request like
> looked like:
>
> GET /something/somewhere...
>
> URI when:
>
> GET http://www.something/somewhere...
Well, this is the behavior I expect, but I *am* querying the server
with an URI containing a schema. For example:
curl http://localhost:8088/
This still yields a File as Status.Kind. This is what bothers me.
next prev parent reply other threads:[~2017-07-19 16:09 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-17 18:30 HTTP with Simple Components: Status.Kind always File Felix Krause
2017-07-17 20:59 ` Dmitry A. Kazakov
2017-07-19 16:09 ` Felix Krause [this message]
2017-07-19 16:33 ` Dmitry A. Kazakov
2017-07-19 19:31 ` Randy Brukardt
2017-07-19 21:13 ` Felix Krause
2017-07-20 8:57 ` Dmitry A. Kazakov
2017-07-20 13:35 ` Felix Krause
2017-07-20 13:57 ` Dmitry A. Kazakov
2017-07-20 14:19 ` Felix Krause
2017-07-20 20:29 ` Simon Wright
2017-07-20 20:57 ` Dmitry A. Kazakov
2017-07-20 21:12 ` Felix Krause
2017-07-21 7:14 ` Dmitry A. Kazakov
2017-07-21 7:06 ` Simon Wright
2017-07-21 7:15 ` Dmitry A. Kazakov
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox