Receive Parameters from the URL line in Mod_Harbour

mod_harbour is an Apache module that allows to run PRGs directly on the web !!!

Receive Parameters from the URL line in Mod_Harbour

Postby byron.hopp » Tue Mar 03, 2020 12:18 am

How do I receive and parse out the parameters which have been passed to a mod_harbour program.
Sets say I am printing a report and I want to pass the account number month, and year of record.

Thanks,

Byron ...
Thanks,
Byron Hopp
Matrix Computer Services
byron.hopp
 
Posts: 358
Joined: Sun Nov 06, 2005 3:55 pm
Location: Southern California, USA

Re: Receive Parameters from the URL line in Mod_Harbour

Postby Antonio Linares » Tue Mar 03, 2020 5:52 am

Byron,

test.prg?param1=Hello&param2=world

From test.prg call AP_Args()

Live sample:
https://www.modharbour.org/modharbour_samples/webservice.prg?param1=hello&param2=world
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41449
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to mod_harbour

Who is online

Users browsing this forum: No registered users and 13 guests

cron