We help IT Professionals succeed at work.

Need codesample cgi to test server

peter_b
peter_b asked
on
Medium Priority
205 Views
Last Modified: 2013-12-25
Hello,

I have registered a homepage and would like to test if it supports some kind of script. I simply want to know how many people download a freeware util. If it doesnt support any scripts is there a free .cgi server, where i can place a link to my homepage so that the free cgi server will count the downloads and forward the request back to my homepage ?

I know nothing about cgi scripts so please try to explain gently :)

Of course i dont want anyone to write the code for me as it is not the purpose of EE but pointing me to some codesample would be nice.

Thanks in advance

Peter

Comment
Watch Question

CERTIFIED EXPERT

Commented:
This would be easy enough to accomplish - instead of linking directly to the file that you want people to download, you would point them to the cgi script, and give, perhaps, some indication of what file they are looking to download.  Then, on the cgi server, you would log the access of that file, and redirect the location to the file that they are going to download, or to a page where they can click on the file to download it.

Author

Commented:
ok thanks, but is there some codesample for this ?
CERTIFIED EXPERT
Commented:
:) I could write a script, but I don't have a sample to point you to - you might try going through cgi-resource.com to see if you could find one.

Redirect is accomplished easily through the CGI.pm module - there is a book on it by Lincoln Stein, who wrote CGI.pm that would be of help called "Official Guide to Programming with CGI.pm".  Also of use to you would be the O'Reilly & Associates book called the "Perl Cookbook".

Author

Commented:
ok this has to wait then :) thought i was not the first one with that problem.
Can you give me the adress of a free cgi server please ?
CERTIFIED EXPERT

Commented:

Explore More ContentExplore courses, solutions, and other research materials related to this topic.