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
----- Original Message -----
From: "David A. G." <[EMAIL PROTECTED]>
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
> is not working according the protocol.
> UrlEncode simply encodes all the URL without taking care of (parse)
> Protocol, Folders, File and Data.
> http : // user:[EMAIL PROTECTED] site .com:80/fol 1/fol 2/file
> This URL must be encoded as:
> http : // www. site .com/fol%201/fol%202/file%201.jpg?par=1
> but UrlEncode just makes:
> Obviously I cannot use the URL without encoding, but I cannot use the
> encode function provided.
> Any idea?
> 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