Hi,
I was wondering if there is an easy way to “curl” a file in a scrip? As I would like to use this to generate a ticket. So pretty much http://site/createtoken.php?tokenid={TicketID}http://site/createtoken.php?tokenid={TicketID}
Thanks,
Tom
Hi,
I was wondering if there is an easy way to “curl” a file in a scrip? As I would like to use this to generate a ticket. So pretty much http://site/createtoken.php?tokenid={TicketID}http://site/createtoken.php?tokenid={TicketID}
Thanks,
Tom
I was wondering if there is an easy way to “curl” a file in a scrip? As I would like to use
this to generate a ticket. So pretty much [1]http://site/createtoken.php?tokenid={TicketID}
You can use perl’s LWP module to make a request like that.
Keep in mind that Scrips are synchronous, so if you do this On Create,
you’ll delay the web UI from returning until the external site
responds, so use a low timeout.
If the external site is unreliable, I suggest a cron job that runs
every 5 minutes to work on new tickets in the background.
-kevin