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

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Tue Feb 18, 2003 8:55 pm Post subject: VDSIPP.DLL Questions |
|
|
I have a couple of questions regarding the VDSIPP.DLL:
- When data is posted, what is the name of the variable. For example, if you are using
$HTTP_POST_VARS['<<what goes here?>>']; in PHP.
- Is it capable of HTTP GETting files with a four-letter extension?
Thanks.  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Wed Feb 19, 2003 2:02 pm Post subject: |
|
|
Hi FreezingFire,
If you post something, like index.php?topic=412, you can get the answer with the $HTTP_POST_VARS['topic'] variable.
The answer to your second question: Of course! You can download .HTML (and other files) just like three-letter extensions... |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Wed Feb 19, 2003 9:43 pm Post subject: |
|
|
I was not thinking when I asked the second question. However: The
example URL is not POSTING, rather it is using the GET command.
You can use the GET command in a web form, for example. In fact,
the actual code that the reply page on the forum is using right now is
using the POST command.
| Code: | | <form action="posting.php" method="post" name="post"> |
It uses the posting.php and not something like
posting.php?message=The message here.
My question is: when you use the HTTP POST command in the vdsipp.dll,
you can post a string/file to a script. What name does the DLL use when
posting? _________________ FreezingFire
VDSWORLD.com
Site Admin Team
Last edited by FreezingFire on Wed Feb 19, 2003 9:53 pm; edited 1 time in total |
|
| Back to top |
|
 |
GeoTrail Valued Contributor


Joined: 18 Feb 2003 Posts: 572 Location: Bergen, Norway
|
Posted: Wed Feb 19, 2003 9:52 pm Post subject: |
|
|
Have you tried something like this:
| Code: | | INTERNET HTTP,POST,1,http://www.website.com/script.php,?name=Bill&Lastname=Gates&Company=Microsoft |
I haven't tried it yet but I think that could be the way to go.
I'll try it tomorrow. _________________
 |
|
| Back to top |
|
 |
GeoTrail Valued Contributor


Joined: 18 Feb 2003 Posts: 572 Location: Bergen, Norway
|
Posted: Thu Feb 20, 2003 5:08 am Post subject: |
|
|
And posting a file could be something like this:
| Code: | | INTERNET HTTP,POST,1,http://www.website.com/script.php,?file=c:\filename.txt |
_________________
 |
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1566
|
Posted: Thu Feb 20, 2003 6:38 am Post subject: |
|
|
Hi FreezingFire,
Here is the exact excerpt from the help file:
| Code: |
INTERNET HTTP,POST,<http client>,<url>,<string/filename>
This command allows you to use the HTTP POST method to send information to a CGI script located on the internet. You usually use the POST method when filling out forms on the internet. The <url> parameter specifies the location of the cgi-script file (example: http://www.vdsworld.com:80/whatever.cgi). The <string/filename> allows you to post either a string of information or a file to the cgi-script. If you want to post a file, you must specify the full path to the local file (example: c:\windows\desktop\file.txt).
|
Basically the filename portion is the same thing as passing variables, such as whatever.pl?var1=hello&var2=ok&var3=24343.
This allows you to just pass a file name which contains the ? and the variables after it. Which is handy when needing to pass a ton of variables to a perl/php script.
INTERNET HTTP, POST, 1,http://www.whatever.com/upload.cgi,c:\windows\desktop\myvars.txt |
|
| Back to top |
|
 |
GeoTrail Valued Contributor


Joined: 18 Feb 2003 Posts: 572 Location: Bergen, Norway
|
Posted: Thu Feb 20, 2003 5:09 pm Post subject: |
|
|
But, keep in mind that the ammount of data passed through the HTTP header is very limited. _________________
 |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Thu Feb 20, 2003 9:13 pm Post subject: |
|
|
Thanks...
I'm not sure if it was my misunderstanding or if I am missing something
in the help file.  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
GeoTrail Valued Contributor


Joined: 18 Feb 2003 Posts: 572 Location: Bergen, Norway
|
Posted: Thu Feb 20, 2003 11:08 pm Post subject: |
|
|
I'm not sure how much you know about PHP, but strings to be posted are a bunch of textstrings using the POST command like this ?name=blabla&test=blabla _________________
 |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Thu Feb 20, 2003 11:11 pm Post subject: |
|
|
Yes... I'm sorry. I wasn't thinking about how posting really works.  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
|