| View previous topic :: View next topic |
| Author |
Message |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Mon Jul 28, 2003 5:43 pm Post subject: HTTP POST with VDSIPP.DLL |
|
|
How can I pass variables to a script using VDSIPP's HTTP POST?
I tried this:
| Code: | | internet http,post,1,http://freezingfire.vdsworld.com/post_test.php,?p1=true&p2=param2 |
But it only returns as if nothing was posted.
The contents of post_test.php is the following:
| Code: | <?php
$p1A = $HTTP_POST_VARS['p1'];
$p2A = $HTTP_POST_VARS['p2'];
echo("$p1A<br>$p2A");
?> |
_________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1564
|
Posted: Mon Jul 28, 2003 9:52 pm Post subject: |
|
|
There appears to be a problem with the version of Indy that is used with the vdsipp, the newer version of Indy has fixed this. I checked the versions of Indy in Delphi to make sure the older version was causing the problem and not the vdsipp. It seems even though it's supposed to call the POST method it's really just doing a GET.
It will take quite some type to convert all of the vdsipp over to the newer version of Indy though so you'll have to be patient  |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Mon Jul 28, 2003 9:54 pm Post subject: |
|
|
| PGWARE wrote: | It will take quite some type to convert all of the vdsipp over to the newer version of Indy though so you'll have to be patient  |
No problem. Thanks for your help.  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
| Back to top |
|
 |
marty Professional Member


Joined: 10 May 2001 Posts: 789
|
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
| Back to top |
|
 |
SnarlingSheep Professional Member


Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
Posted: Tue Jul 29, 2003 4:47 pm Post subject: |
|
|
You might also want to check out Terry Reese's Winsock wrapper at:
http://ucs.orst.edu/~reeset/html/other/socket.html
I don't have any examples for VDS but it should be fairly easy. _________________ -Sheep
My pockets hurt... |
|
| Back to top |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Tue Jul 29, 2003 5:21 pm Post subject: |
|
|
Thanks SnarlingSheep for the link. It looks like a very simple one as one can see the VB/ibasic examples. I am ignorant about Winsock though  _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1564
|
Posted: Tue Jul 29, 2003 7:06 pm Post subject: |
|
|
| The http post method in the vdsipp does work however the underlying Indy 8 components seem not to POST correctly with some servers. It appears it attempts to wait for a return code of 100 before posting the http variables for post but with some servers it doesn't, thus it never sends the variables to post. This appears to have been fixed within Indy 9 though, again I'll have to update the vdsipp to use the newer version of Indy and this will take some time. |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
| Back to top |
|
 |
|