🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #348

How to call php code from indy

#348
From: roladdon
Date: Thu, 17 Apr 2008 14:29
16 lines
1273 bytes
I am trying to call  php code from indy:  error message "403 Forbidden"

1)
Body = TIdHTTP1->Get("http://123.com/456/test.php", ts);

2)
TStringList *ts = new TStringList();
Body = TIdHTTP1->Post("http://123.com/456/test.php", ts);

both get's the error  "403 Forbidden", this php code should return "ok"

How can I call a PHP page?

thanks,

Roland 
Technical Details
Message-ID: <48075eba@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!eweka.nl!lightspeed.eweka.nl!feeder.erje.net!news.isoc.lu!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,ad6a48f4593c9f1f,start
X-Google-Attributes: gid11508e,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "roladdon" <roladdon@PutMyServerHere.ca>
From: "roladdon" <roladdon@PutMyServerHere.ca>
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: How to call php code from indy
Date: Thu, 17 Apr 2008 10:29:12 -0400
Lines: 18
Organization: AddOn
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 65.94.49.23
Message-ID: <48075eba@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1208442554 65.94.49.23 (17 Apr 2008 07:29:14 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!eweka.nl!lightspeed.eweka.nl!feeder.erje.net!news.isoc.lu!newsgroups.borland.com!not-for-mail