Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > URL encoder in c++

Reply
Thread Tools

URL encoder in c++

 
 
metaosp
Guest
Posts: n/a
 
      02-11-2006
Hi,

Could anyone suggest a nice, small url encoder/decoder class (or
function) with source code?


Thanks,
Metaosp


 
Reply With Quote
 
 
 
 
TB
Guest
Posts: n/a
 
      02-11-2006
metaosp sade:
> Hi,
>
> Could anyone suggest a nice, small url encoder/decoder class (or
> function) with source code?
>
>


Since a URI is only allowed to contain US-ASCII characters, all you
have to do is search through the string and replace each illegal
character with '%' + hexadecimal code. And space must be encoded
as '%20'. www.w3.org provides a complete specification, which
is not that long or hard to grasp. But remember not to encode
actual delimiters in the URI.

--
TB @ SWEDEN
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pipelined binary encoder Fred Bartoli VHDL 1 11-10-2004 12:33 AM
URL - substitution of a correct URL by a GUID like URL in favorites. Just D. ASP .Net Mobile 0 08-11-2004 04:26 PM
redirect URL's, return URL's, and URL Parameters Jon paugh ASP .Net 1 07-10-2004 05:29 AM
N_bit decoder/encoder Gietek VHDL 4 12-04-2003 03:20 PM
manchester encoder Ronny Hengst VHDL 4 08-08-2003 01:23 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57