Article View: borland.public.cppbuilder.internet.web
Article #1279Re: idhttpserver question
From: Jens Harms
Date: Wed, 13 Apr 2005 20:39
Date: Wed, 13 Apr 2005 20:39
53 lines
2589 bytes
2589 bytes
hi gambit, > http://192.168.0.10:8080/somedocument?mail=info%40hotmail.com&id=12345 i changed my php script and use urlencode function, to decode the parameter ;) > On the server end, the ARequestInfo->Document property will now be > "/somedocument" and the ARequestInfo->Params property will be filled in with > the "mail" and "id" values. to check this i wrote: ShowMessage(ARequestInfo->Params->Text); i get this here: --------------------------- | mail=info@hotmail.com | | id=12345 | --------------------------- is there also an easy way to read the values 12345 and info@hotmail.com into to string variables named String mail and String id? jens "Remy Lebeau (TeamB)" <no.spam@no.spam.com> schrieb im Newsbeitrag news:425d77c6$1@newsgroups.borland.com... > > "Jens Harms" <jens@harms.ch> wrote in message > news:425d700c@newsgroups.borland.com... > > > an example string would be > > > > http://192.168.0.10:8080/mail=info@hotmail.com&id=12345 > > That is not a valid URL. Data parameters must be placed after a "?" > character, which in turn should follow a filename, and special characters > like @ should be encoded, ie: > > http://192.168.0.10:8080/somedocument?mail=info%40hotmail.com&id=12345 > > On the server end, the ARequestInfo->Document property will now be > "/somedocument" and the ARequestInfo->Params property will be filled in with > the "mail" and "id" values. > > > Gambit > >
Technical Details
Message-ID:
<425d8361@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<425d5049$1@newsgroups.borland.com> <425d664c$1@newsgroups.borland.com> <425d700c@newsgroups.borland.com> <425d77c6$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,eec345b2d81ef84 X-Google-Attributes: gidfeeec,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Jens Harms" <jens@harms.ch> Newsgroups: borland.public.cppbuilder.internet.web References: <425d5049$1@newsgroups.borland.com> <425d664c$1@newsgroups.borland.com> <425d700c@newsgroups.borland.com> <425d77c6$1@newsgroups.borland.com> Subject: Re: idhttpserver question Date: Wed, 13 Apr 2005 22:39:04 +0200 Lines: 55 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 NNTP-Posting-Host: 84.137.89.197 Message-ID: <425d8361@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1113424737 84.137.89.197 (13 Apr 2005 13:38:57 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail