Re: [fpc-pascal] Cannot reuse TFPHTTPClient object for 2 different POST requests

2015-01-20 Thread leledumbo
> You cannot always trust the Size property of a stream. Err...OK > That is not quite correct, because that will also clear any custom headers > you may want to set. > Cookies, Accept-encoding and so on. Exactly what I have in mind, just need to document it somewhere. Anyway, the default shou

Re: [fpc-pascal] Cannot reuse TFPHTTPClient object for 2 different POST requests

2015-01-20 Thread Michael Van Canneyt
On Tue, 20 Jan 2015, leledumbo wrote: Because the header may have been set on purpose by the user. Even if the actual data sent is not of the same length? You cannot always trust the Size property of a stream. I will look at a mechanism to remove headers that were 'automatically' added

Re: [fpc-pascal] Cannot reuse TFPHTTPClient object for 2 different POST requests

2015-01-20 Thread leledumbo
> Because the header may have been set on purpose by the user. Even if the actual data sent is not of the same length? > I will look at a mechanism to remove headers that were 'automatically' > added. How about a property ClearHeadersOnEachRequest (defaults to true for backward compatibility)?

Re: [fpc-pascal] Linker script doesn't search in /usr/lib32 when cross compiling from x86_64 to i386

2015-01-20 Thread Jonas Maebe
On 20 Jan 2015, at 11:56, leledumbo wrote: > OUTPUT_FORMAT("elf32-i386", "elf32-i386", > "elf32-i386") > OUTPUT_ARCH(i386) > ENTRY(_start) > SEARCH_DIR("/usr/i386-unknown-linux-gnu/lib32"); > SEARCH_DIR("/usr/x86_64-unknown-linux-gnu/lib32"); SEARCH_DIR("/usr/lib"); > SEARCH_DIR("/u

Re: [fpc-pascal] Linker script doesn't search in /usr/lib32 when cross compiling from x86_64 to i386

2015-01-20 Thread leledumbo
> But does it also show the 32 bit ones? $ ld -m elf_i386 --verbose GNU ld (GNU Binutils) 2.25 Supported emulations: elf_x86_64 elf32_x86_64 elf_i386 i386linux elf_l1om elf_k1om using internal linker script: == /* Script for -z co

Re: [fpc-pascal] SCGI in Pascal?

2015-01-20 Thread Michael Van Canneyt
On Tue, 20 Jan 2015, Michael Schnell wrote: On 01/19/2015 06:31 PM, silvioprog wrote: Can any one inform if exists a FPC or Delphi implementation to this protocol [1]? You'd better ask in the Lazarus list. Lazarus does provide some basic CGI and FCGI support. Maybe SCGI can build on this.

Re: [fpc-pascal] SCGI in Pascal?

2015-01-20 Thread Sven Barth
Am 20.01.2015 09:31 schrieb "Michael Schnell" : > > On 01/19/2015 06:31 PM, silvioprog wrote: >> >> Can any one inform if exists a FPC or Delphi implementation to this protocol [1]? > > > You'd better ask in the Lazarus list. Lazarus does provide some basic CGI and FCGI support. Maybe SCGI can buil

Re: [fpc-pascal] SCGI in Pascal?

2015-01-20 Thread Michael Schnell
On 01/19/2015 06:31 PM, silvioprog wrote: Can any one inform if exists a FPC or Delphi implementation to this protocol [1]? You'd better ask in the Lazarus list. Lazarus does provide some basic CGI and FCGI support. Maybe SCGI can build on this. -Michael _