in reply to cgi-perl

Maybe you need LWP::UserAgent?

Your problem description is not very clear.

Liz

Replies are listed 'Best First'.
Re: Re: cgi-perl
by tja_ariani (Acolyte) on Aug 07, 2003 at 10:02 UTC
    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.
      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