Hi, There will be platform-specific considerations, but generally there are 2 ways to pass parameters to a webserver: 1) GET 2) POST
Get is easier to user: If you have e.g. a userid and a password then the call could look like this: https://.......?user=xxxx&password=yyy everything after the question mark is data that is passed to the program. e.g. https://program.rex?user=xxx&password=yyy then "program.rex" could look like this: /* program.rex */ Parse arg buf Parse var buf "user=" userid "&password=" pw /*there are many ways to parse this */ ... The REXX program is your CGI program in this case. And yes, you could submit the data directly form this REXX with one of the tools available on that platform (e.g. curl) https://curl.haxx.se/ Best regards Mike -----Ursprüngliche Nachricht----- Von: IBM Mainframe Discussion List [mailto:[email protected]] Im Auftrag von Mary Kay Tubello Gesendet: 31 January, 2018 19:31 An: [email protected] Betreff: CGIs and HTML FORMs Hello, I have a situation as follows; 1. I have a URL going to a CGI and passing parms, i.e. https://syst.humana.com/HUMcgitest/RICK3.sh?ODICT,POO4567891123456 2. The CGI reads a job from a PDS into a STEM and fills in the two parms that were sent on the url. And Submits the job. 3. Now, I have to make a change to allow a user to enter his employee id. In this case, we start with a CGI and go to a form. I added this to the original CGI to create the form when the user clicks 'click here'. say 'content-type: text/html' say say '<html> <head> ' say '<title>Acknowledger Authentication </title>' say '<META HTTP-EQUIV="pragma" CONTENT="no-cache"> </head>' say '<body bgcolor="white" text="black" link="black" alink="green">' say '<p> <a href="../HUMhtml/ODICTform3.htm">Click here</a></p>' say '</body> </html>' My ODICTform3.htm sends out a form with a space for user to enter employee id. Now, here's the part I'm having trouble with. 1. I want the CGI to pass the parms in the URL above to the HTML . HOW? 2. Then, I want all three parms (two from URL and one from FORM to be added to that job STEM that I created above. HOW? 3. Submit the job from the HTML or do I send it back to the CGI to submit or write a second CGI to submit the job. HOW? Thanks, Mary Kay Large Systems Engineering IT Infrastructure Humana 123 E. Main St. 40202 (CT6) 502-476-2772 [email protected]<mailto:[email protected]> ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
