forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


HTTP POST with VDSIPP.DLL

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Mon Jul 28, 2003 5:43 pm    Post subject: HTTP POST with VDSIPP.DLL Reply with quote

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. Confused

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
View user's profile Send private message Visit poster's website
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1564

PostPosted: Mon Jul 28, 2003 9:52 pm    Post subject: Reply with quote

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 Sad
Back to top
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Mon Jul 28, 2003 9:54 pm    Post subject: Reply with quote

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 Sad


No problem. Thanks for your help. Smile

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Tue Jul 29, 2003 8:49 am    Post subject: Reply with quote

Prakash, is that Indy component open source? If so, can you please tell me a URL where I can download it? I want to try to make a TCP connection with VDS itself by using the (Windows?) APIs. Smile
_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
marty
Professional Member
Professional Member


Joined: 10 May 2001
Posts: 789

PostPosted: Tue Jul 29, 2003 11:25 am    Post subject: Reply with quote

Here is thr URL:

http://www.nevrona.com/Indy/


Wink
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Tue Jul 29, 2003 12:26 pm    Post subject: Reply with quote

Oops... Embarassed Looks a bit too complicated for me... I can't even find the source... Laughing
_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Tue Jul 29, 2003 12:41 pm    Post subject: Reply with quote

This seems to be the link to the source of the latest version:

http://www.nevrona.com/indy/downloads/Indy_9_00_14_src.zip

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Tue Jul 29, 2003 12:49 pm    Post subject: Reply with quote

Thanks... Smile
_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
SnarlingSheep
Professional Member
Professional Member


Joined: 13 Mar 2001
Posts: 759
Location: Michigan

PostPosted: Tue Jul 29, 2003 4:47 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Tue Jul 29, 2003 5:21 pm    Post subject: Reply with quote

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 Sad
_________________
Regards
- CodeScript
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1564

PostPosted: Tue Jul 29, 2003 7:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Tue Jul 29, 2003 7:07 pm    Post subject: Reply with quote

Thanks SnarlingSheep, that could be useful... Smile
_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group