in reply to Re^3: Need to use data passed from FORM from HTML page to CGI upload script.
in thread Need to use data passed from FORM from HTML page to CGI upload script.

I tried to use the same example which you listed but somehow when I am clicking the upload button,it is stating that Maintenance_Framework.cgi is not found. HTML page location - > /opt/IBM/JazzSM/profile/installedApps/JazzSMNode01Cell/isc.ear/OMNIbusWebGUI.war/custom CGI location - > /opt/IBM/netcool/gui/omnibus_webgui/etc/cgi-bin HTML Code for your reference which I modified in your base code

<!DOCTYPE html> <html> <head> <title>MAINTENANCE PAGE</title> </head> <body> <form action="https://10.XXX.XXX.X:16311/ibm/console/webtop/cgi-bin/Ma +intenance_Framework.cgi" method = "post" enctype="multipart/form-data +"> <h3>MAINTENANCE PAGE</h3> <p> Circle: <select name="Circle" > <option value="Gabon">Gabon</option> <option value="Tanzania">Tanzania</option> </select> Technology : <select name="Techno" > <option value="Core">Core</option> <option value="RAN">RAN</option> </select> <input type="submit" name="action" value="Download"/></p> File to Upload: <input type="file" name="filecsv"/> <input type="submit" name="action" value="Upload"/> </form> </body> </html>
  • Comment on Re^4: Need to use data passed from FORM from HTML page to CGI upload script.
  • Download Code

Replies are listed 'Best First'.
Re^5: Need to use data passed from FORM from HTML page to CGI upload script.
by poj (Abbot) on Jul 26, 2019 at 15:23 UTC

    Is

    https://10.XXX.XXX.X:16311/ibm/console/webtop/cgi-bin/Maintenance_Framework.cgi
    a valid URL if you enter it directly in the browser ?

    poj
      Yes.Absolutely. It is working successfully in original HTML code.
      <!DOCTYPE html> <html> <head> <title>MAINTENANCE PAGE</title> </head> <body> <form name = f1 action="https://10.XXX.XXX.X:16311/ibm/console/webtop/ +cgi-bin/download_csv.cgi" method = "POST"> <p style="margin-left:10em;font-size:40px">MAINTENANCE PAGE</p> <br> <p style="margin-left:16.5em;font-size:20px">Circle:<select name="Circ +le" > <option value="Gabon">Gabon</option> <option value="Tanzania">Tanzania</option> </select> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs +p;&nbsp;&nbsp; Technology : <select name="Techno" > <option value="Core">Core</option> <option value="RAN">RAN</option> </select> </p> <br> <input type="submit" style="margin-left:30.5em" value="Download" onc +lick="this.form.target='_blank';return true;"> &nbsp;&nbsp;&nbsp; <input type="submit" value="Upload" onclick="f1.action='https://10.XXX +.XXX.X:16311/ibm/console/webtop/cgi-bin/Maintenance_Framework.cgi'; +return true;"> </form> </body> </html>

        HTML is not supporting enctype="multipart/form-data" in form statement . when I removed this string from FORM statement,at least error didn't popup when I clicked Upload or Download button.However file didn't got uploaded or downloaded.