Article View: borland.public.cppbuilder.internet.web
Article #1277Re: idhttpserver question
From: Jens Harms
Date: Wed, 13 Apr 2005 19:16
Date: Wed, 13 Apr 2005 19:16
61 lines
2810 bytes
2810 bytes
Hi, i have build me a http web form whoch open this php file: <? $url = "http://192.168.0.10:8080/mail=" . $mail . "&id=" . $id; echo file_get_contents($url); ?> an example string would be http://192.168.0.10:8080/mail=info@hotmail.com&id=12345 In my application i am working with the CommandGet event (from idhttpserver) and read the parameters via: String line = ARequestInfo->Document; Line has now the value "/mail=info@hotmail.com&id=12345" now i ask me how to get the values for id and mail. is there perhabs a better way to transfer the information to make it easyer or do i have to write a string parsr which gives me the id and the email? jens "Hans Galema" <notused@notused.nl> schrieb im Newsbeitrag news:425d664c$1@newsgroups.borland.com... > > > i like to write an application which is running on a my windows server 2003. > > this application should habe a http server in it. thus i like to use > > idhttpserver. > > IdHttpServer ? Could you take the time to use capitals please ? > > > i have a form on my homepage. in this form the user can insert his email und > > a special number. when the user press the send button i like to send these > > to information to my server application. i thought of of http post like > > http://something.homedns.org:83/?var1=email@email.com&var2=1234 > > That looks like a get. Not a post. The method attribute of the form > tag determines if the browser sends the request as a post or a get. > > > my server application, should read these values und wirte them into a > > listbox. > > Indeed. > > > is this possible with id httpserver. it the way with http post a good way or > > is there a better way. i have no idea how to do. > > Of course TIdHttpServer will receive all data as get or post. > > Please be more exact in explaining what your real problem is. > > Hans.
Technical Details
Message-ID:
<425d700c@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!newshub.sdsu.edu!newshosting.com!nx01.iad01.newshosting.com!news-peer0-test!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>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> Subject: Re: idhttpserver question Date: Wed, 13 Apr 2005 21:16:23 +0200 Lines: 63 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: <425d700c@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1113419788 84.137.89.197 (13 Apr 2005 12:16:28 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!newshub.sdsu.edu!newshosting.com!nx01.iad01.newshosting.com!news-peer0-test!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail