Re: Getting variables from the URI
Brad Stone <[email protected]>
| Newsgroups | gmane.comp.systems.as400.web |
|---|---|
| Message-ID | <CAAGV8OfiNa+wa48zknqc5Fui+202-OtOytqgEH1RuXFOARcpxw@mail.gmail.com> |
Hi, Joep. Thanks for the plug! The book is still a little worthwhile, except for the HTTP config stuff which was back when it was the CERN based HTTP server, not Apache. :) I also didn't cover parsing URLs as that wasn't a thing then for web services (I still think it's a little cumbersome, and prefer good old fashioned name/value pairs, but oh well! ). I have done a few projects where I had to parse the URI. If they get very verbose it can get a little cumbersome, though. But, with all the new %bifs in RPG string parsing is getting quite simple! I no longer need my big STRINGS service program to do most of it. :) On Thu, Oct 14, 2021 at 8:22 AM Joep Beckeringh via WEB400 < [email protected]> wrote: > Dave, > > Do you know that (the always helpful) Brad wrote a few books about this > stuff, 25 years ago, when it was all new to us AS/400 folks and we had > to program it all ourselves? > > https://www.bvstools.com/ > > https://www.amazon.com/RPG-Building-400-Web-Applications/dp/1583470085 > > Joep Beckeringh > > > Op 14-10-2021 om 14:27 schreef Brad Stone: > > Yep, you'll need to parse the URI. > > > > On Thu, Oct 14, 2021 at 2:24 AM Dave <[email protected]> wrote: > > > >> Hello, > >> > >> Just checking, I don't see how this is possible: I'm getting the > variables > >> after the "?" from QUERY_STRING, but how about those in the actual URI ? > >> > >> http://localhost:8080/shop/order/1001/receipts?date=12-05-2017 > >> > >> I presume it's up to my program to get order=1001 from the URI > >> -- > >> This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing > >> list > >> To post a message email: [email protected] > >> To subscribe, unsubscribe, or change list options, > >> visit: https://lists.midrange.com/mailman/listinfo/web400 > >> or email: [email protected] > >> Before posting, please take a moment to review the archives > >> at https://archive.midrange.com/web400. > >> > >> > -- > This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing > list > To post a message email: [email protected] > To subscribe, unsubscribe, or change list options, > visit: https://lists.midrange.com/mailman/listinfo/web400 > or email: [email protected] > Before posting, please take a moment to review the archives > at https://archive.midrange.com/web400. > > -- This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing list To post a message email: [email protected] To subscribe, unsubscribe, or change list options, visit: https://lists.midrange.com/mailman/listinfo/web400 or email: [email protected] Before posting, please take a moment to review the archives at https://archive.midrange.com/web400.