Article View: borland.public.cppbuilder.internet.web
Article #1693Re: http - post
From: Hans Galema
Date: Tue, 05 Oct 2004 07:20
Date: Tue, 05 Oct 2004 07:20
38 lines
2213 bytes
2213 bytes
JF wrote: > The post data I created as a first test was simply "name= John". That is no good idea. Better make it "name=John". > The first target URL was a small asp program on localhost which does a > response.write of each key and each request.form key. This program thinks > key (name) is "name=John" and response.write key (value) is nothing. What kind of asp program is that ? Isn't there a webserver ? If it is an asp script, who wrote it ? > The second target URL was www.uark.edu/~wrgx/versus/post.cgi which shows all > the parameters that were sent to it. This site thought the key was > "name%3dJohn". Wasn't it "name%3DJohn" ? That is perfectly ok. The site states as such: "The data is encoded with + sign's and %(hex equivalents).". "%3D" means "=". It is URL encoded. > In both cases the data from the site was viewed through the code > Memo1->Text=NMHTTP1->Body; I did that too. But you better copy and paste it to wordpad because of the linebreaks. While testing better send two key=value pairs. > What should I have written in the postdata parameter? It was ok. I tested again TNMHTTP posting to some of my webapplications. It does the job. Hans.
Technical Details
Message-ID:
<41624a5d@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newshosting.com!nx02.iad01.newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<4161ea5c$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,edd0e253bad903c5 X-Google-Attributes: gidfeeec,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Tue, 05 Oct 2004 09:20:11 +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.internet.web Subject: Re: http - post References: <4161ea5c$1@newsgroups.borland.com> In-Reply-To: <4161ea5c$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: <41624a5d@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1096960605 129.125.201.248 (5 Oct 2004 00:16:45 -0700) Lines: 38 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newshosting.com!nx02.iad01.newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail