> Le 26 mai 2021 à 17:38, Joey Fish <tigerscla...@hotmail.com> a écrit : > > In handling form-data it was impossible to handle, via the HTML-Form POST > method, arbitrary parameters because lack of a filter ensured that no > parameters were processed. Following is the fix [in source-file > gnoga-server-connection.adb] I’ve been using, though this results in some > constraints for processing which prevent multi-user simultaneous access > (because post parameters are handled individually, therefore simultaneous > submissions cannot be handled).
<...> > There is another limitation, one where any particular parameter cannot exceed > 500 characters, this limit is set in the definition Gnoga_HTTP_Content, in > the same source-file. Shown below. > type Gnoga_HTTP_Content is new Content_Source with > record > Socket : Socket_Type := null; > Connection_Type : Gnoga_Connection_Type := HTTP; > Connection_Path : Ada.Strings.Unbounded.Unbounded_String; > FS : Ada.Streams.Stream_IO.File_Type; > Input_Overflow : String_Buffer; > Buffer : String_Buffer; > Finalized : Boolean := False; > Text : aliased Strings_Edit.Streams.String_Stream (500); > end record; > > I am working on a fix for this, the simplest would be to increase the > discriminant to, say, 4096… but this merely moves the constraint to 4KB, > instead of memory arbitrary [arguments may be made for both], so I will > likely experiment on it to see if I can get a less-limited solution. Hello Joey, Well, few years ago, I came across these two issues when I had to dig in POST mechanism. I agree that this current way is not very convenient. The value 500 should be a constant in gnoga-server-connection-common.ads. Indeed, though GET and POST are supported, Gnoga is designed to play rather with events. What is your use case? Regards, Pascal. https://blady.pagesperso-orange.fr _______________________________________________ Gnoga-list mailing list Gnoga-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gnoga-list