Article View: borland.public.cppbuilder.nativeapi
Article #8639Re: UrlEscape
From: Hans Galema
Date: Fri, 01 Oct 2004 10:49
Date: Fri, 01 Oct 2004 10:49
20 lines
1412 bytes
1412 bytes
Angel wrote: > I have an URL like this: > > http://www.myserver.com:8080/myservlet?query1=value one&query2=%value two% > Where did you get that string from ? Did you generate it yourself ? > and I want the '%' characters escaped. > > I am using the following code: Why are you using so much code just to replace a '%" with '\%' ? You could just use a stringreplace function or write your own pecentageescape() function. Hans.
Technical Details
Message-ID:
<415d2746@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!proxad.net!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<41595117$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,5197fec0940ada91 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Fri, 01 Oct 2004 12:49:05 +0200 From: Hans Galema <dontusethis@dontusethis.nl> User-Agent: Mozilla Thunderbird 0.7 (Windows/20040616) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: UrlEscape References: <41595117$1@newsgroups.borland.com> In-Reply-To: <41595117$1@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 129.125.201.248 Message-ID: <415d2746@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1096623942 129.125.201.248 (1 Oct 2004 02:45:42 -0700) Lines: 21 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!proxad.net!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail