in reply to Re^2: Uploading files to a HTTPS server - 501 error
in thread Uploading files to a HTTPS server - 501 error

What are you trying to accomplish? It looks like you are running JavaScript in the browser that posts to the shell script on the web server. I am going to guess that the shell script is not a CGI script. I am also going to bet that web server is not configured to run shell scripts as CGI scripts and gives the 501 error because it can't POST to them.

It is possible to have a CGI script (usually written all in Perl), that accepts a file upload and then POSTs it to another secure web server. I guess it is also possible to have a CGI script on a web server that POSTs a local file to a secure web server but I am not sure why you would want do that. If posting from a browser to the secure site is working, why do you need the script using LWP?

  • Comment on Re^3: Uploading files to a HTTPS server - 501 error

Replies are listed 'Best First'.
Re^4: Uploading files to a HTTPS server - 501 error
by Anonymous Monk on Jun 16, 2004 at 11:42 UTC
    Got it working now!! - Interesting solution:-

    Remember - the perl script was transferring the file correctly when run from the command line, but when the perl script was invoked from the browser I would get the error:

    "501 Protocol scheme 'https' is not supported (Crypt::SSLeay not installed)"

    Solution:- add the -T option (taint mode) to the perl script, so first line:

    #!/usr/bin/perl -w

    became:

    #!/usr/bin/perl -wT

    Not sure why this works - but it does!

    Thanks for your help

    Jonathan