in reply to Re: Upload File to IO::Socket server via browser
in thread Upload File to IO::Socket server via browser

CGI.pm is great for Apache CGI scripts, but not sure if that will work with an IO::Socket server

Also, I am not instructing the server to go fetch a URL. Rather, what I am doing is allowing the user to upload a file to the server and provide the URL they want it stored under. Then, if any other user requests the URL from the proxy, the proxy will server the file the original user uploaded. This will give users the ability to upload files to the proxy server such as:
Their resume and store it under http://resumebank.company/joe_smith.doc

or something like that. This is a test thing rather than a production piece. Well aware users might put the wrong extension on things. Once this is all figured out, I will write a piece to make sure they get the extension right.

Thanks.
  • Comment on Re^2: Upload File to IO::Socket server via browser

Replies are listed 'Best First'.
Re^3: Upload File to IO::Socket server via browser
by Corion (Patriarch) on Nov 13, 2009 at 15:51 UTC

    It sounds to me as if you're not implementing a "proxy server" but simply a small HTTP server. Then, on the receiving side, CGI.pm would be what you want, potentially coupled with HTTP::Server::Simple, or, as a more advanced solution, any of the other HTTP server implementations in Perl.