I already answer that question (or very similar) one or two days ago ! The answer was: UrlEncode is not to encode an URL but to encode a string to be part of an URL, escaping unallowed charcaters in an URL. If you need to parse an URL, use ParseUrl.
-- Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] http://www.overbyte.be ----- Original Message ----- From: "David A. G." <[EMAIL PROTECTED]> To: <twsocket@elists.org> Sent: Sunday, February 12, 2006 2:00 PM Subject: [twsocket] Encode URL > Hello all > > I'm trying an HTTP-Get software but I found that UrlEncode (from > IcsUrl.pas) > is not working according the protocol. > > UrlEncode simply encodes all the URL without taking care of (parse) > Protocol, Folders, File and Data. > > Example: > > http : // user:[EMAIL PROTECTED] site .com:80/fol 1/fol 2/file > 1.jpg?par=1#name > > This URL must be encoded as: > > http : // www. site .com/fol%201/fol%202/file%201.jpg?par=1 > > but UrlEncode just makes: > > http%3A%2F%2Fuser%3Apass%40www%2Esite%2Ecom%3A80%2Ffol%201%2Ffol%202%2Ffile%201%2Ejpg%3Fpar%3D1%23name > > Obviously I cannot use the URL without encoding, but I cannot use the > encode function provided. > > Any idea? > Thanks, > > David > > -- > To unsubscribe or change your settings for TWSocket mailing list > please goto http://www.elists.org/mailman/listinfo/twsocket > Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be