[fpc-pascal] fphttpclient get an url with colon
Alberto Narduzzi
albertonarduzzi at yahoo.com
Fri Feb 17 21:03:25 CET 2012
> 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.mark, ampersand, percent, etc. etc.
To use them in a url for your special purposes, you should at least
escape them; if not for anything else, at least for those not-so-smart
browsers (or http-client components...).
Try replacing the colon with %3A and see if the component adds a slash
at the end as well. It should not IMHO.
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.
Cheers, A.
More information about the fpc-pascal
mailing list