Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Re: cgi-perl

by tja_ariani (Acolyte)
on Aug 07, 2003 at 10:02 UTC ( [id://281818]=note: print w/replies, xml ) Need Help??


in reply to Re: cgi-perl
in thread cgi-perl

Ok, ill try to elaborate more. I already installed an apache server, for cgi and webserver. Now I want to build a website where people/public can submit their file.But this file need to be send to another server (not the webserver). So I was thinking to write a program in perl that opens tcp/ip conx when it is triggered by smt from the website to the destinated server. But I don't have any idea of where to start learning. Learned about how to create a tcp conx in perl but don't know how to continue then.

Replies are listed 'Best First'.
Re: Re: Re: cgi-perl
by liz (Monsignor) on Aug 07, 2003 at 10:11 UTC
    So you have the following steps:
    1. get a file from a submitter
    2. send that file to another server
    About 1: I assume you already use Apache::Request to get the file into a temporary directory.

    So that leaves 2: the problem of sending the file to that other server. Is that other server also running a webserver? Or an FTP-server? Or what?

    If the other server is a web-server, why don't you post the result of your form there so that the file is stored there immediately?

    If that is not possible, and it is running a web-server that allows file uploads, the LWP::UserAgent should do the trik for you. If the other server is an FTP-server, then I guess Net::FTP would be something to look at.

    Hope this helps. Still not 100% sure what you're trying to do.

    Liz

      Hi, thanks a lot for ur help. But I'm still confused of which module should I start first from whether 1 or 2 first, and how to "trigger another script". Could you tell me some of the simple uploadscripts available? so that I can learn and build based on that

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://281818]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-04-23 22:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found