comp.lang.ada
 help / color / mirror / Atom feed
From: Felix Krause <contact@flyx.org>
Subject: Re: HTTP with Simple Components: Status.Kind always File
Date: Thu, 20 Jul 2017 16:19:41 +0200
Date: 2017-07-20T16:19:41+02:00	[thread overview]
Message-ID: <2017072016194162222-contact@flyx.org> (raw)
In-Reply-To: okqct1$1fl2$1@gioia.aioe.org

On 2017-07-20 13:57:54 +0000, Dmitry A. Kazakov said:

> On 20/07/2017 15:35, Felix Krause wrote:
> 
>> My suggestion is thus to parse the query even if you get a path. As I 
>> see it, this will not directly
>> violate the spec. HTTP defines that:
>> 
>> Servers SHOULD respond to invalid Request-URIs with an appropriate status code.
>> 
>> If a path contains a '?', it is an invalid Request-URI. The SHOULD 
>> allows you to handle this differently without violating the spec.
>> 
>> I look forward to your opinion.
> 
> How about this. I could add a Boolean parameter to control the behavior:
> 
> 1. If False everything is as it is now;
> 
> 2. If True and the path contains either '?' or '#' (something else?), 
> it is parsed as if HTTP_Scheme was there.

This would be fully sufficient solution. I would be grateful if you added this.

Cheers,
Felix

  reply	other threads:[~2017-07-20 14:19 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
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 [this message]
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