Re: [fpc-pascal] fphttpclient get an url with colon

2012-02-17 Thread Alberto Narduzzi
No. This does not work with mediawiki. Of course not... that was just an example. A. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] fphttpclient get an url with colon

2012-02-17 Thread Michael Van Canneyt
On Fri, 17 Feb 2012, Mattias Gaertner wrote: On Fri, 17 Feb 2012 22:03:25 +0200 Alberto Narduzzi wrote: I doubt that mediawiki uses malformed urls. And any browser and http client uses it without warning. as I said, it was out of curiosity. Googling around anyway, shows that there are so

Re: [fpc-pascal] fphttpclient get an url with colon

2012-02-17 Thread Mattias Gaertner
On Fri, 17 Feb 2012 22:03:25 +0200 Alberto Narduzzi wrote: >[...] > Anyway, "http://wiki.lazarus.freepascal.org?Image=Acs_demos.jpg"; is not > that ugly. Probably it's not so sophisticated, but can do the very same job. No. This does not work with mediawiki. Mattias ___

Re: [fpc-pascal] fphttpclient get an url with colon

2012-02-17 Thread Mattias Gaertner
On Fri, 17 Feb 2012 22:03:25 +0200 Alberto Narduzzi wrote: > > I doubt that mediawiki uses malformed urls. > > And any browser and http client uses it without warning. > > as I said, it was out of curiosity. > > Googling around anyway, shows that there are some special characters out > there (

Re: [fpc-pascal] fphttpclient get an url with colon

2012-02-17 Thread Alberto Narduzzi
I doubt that mediawiki uses malformed urls. And any browser and http client uses it without warning. as I said, it was out of curiosity. Googling around anyway, shows that there are some special characters out there (obviously), which are meant to compose the url itself: colon, slash, dot, q.

Re: [fpc-pascal] fphttpclient get an url with colon

2012-02-17 Thread Mattias Gaertner
On Fri, 17 Feb 2012 21:20:29 +0200 Alberto Narduzzi wrote: > The fact it appends a slash at the end is probably because it thinks > it's a path... > > But, just out of curiosity... isn't it a malformed *http* url if it > contains a colon? I doubt that mediawiki uses malformed urls. And any br

Re: [fpc-pascal] fphttpclient get an url with colon

2012-02-17 Thread Alberto Narduzzi
The fact it appends a slash at the end is probably because it thinks it's a path... But, just out of curiosity... isn't it a malformed *http* url if it contains a colon? Cheer, A. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://li

Re: [fpc-pascal] fphttpclient get an url with colon

2012-02-17 Thread michael . vancanneyt
On Fri, 17 Feb 2012, michael.vancann...@wisa.be wrote: On Fri, 17 Feb 2012, Mattias Gaertner wrote: Hi, When I use TFPHTTPClient to fetch a page with a colon in the file name it appends a slash "/". For example: Client:=TFPHTTPClient.Create(nil); Response:=TMemoryStream.Create; Client

Re: [fpc-pascal] fphttpclient get an url with colon

2012-02-17 Thread michael . vancanneyt
On Fri, 17 Feb 2012, Mattias Gaertner wrote: Hi, When I use TFPHTTPClient to fetch a page with a colon in the file name it appends a slash "/". For example: Client:=TFPHTTPClient.Create(nil); Response:=TMemoryStream.Create; Client.Get('http://wiki.lazarus.freepascal.org/Image:Acs_demos.jp