I'm using mod_curl to send a get request to an external API using a URL similar to this:
https://api.sample.com/webhook/office-inbound-call?site=samplesite&callernum=${caller_id_number}&callerid=${caller_id_name}
It's mostly working just fine however as the ${caller_id_name} has spaces in it, rather than converting to %20 curl is just ending the request, i'm able to catch the caller ID name prior to the first space but nothing after.
My thought here is to pipe ${caller_id_name} into a new variable, ie ${caller_id_name_api} and run a replace on that variable to change spaces to %20 prior to consuming it in the curl action.
Has anyone done anything like this before?
Thanks
https://api.sample.com/webhook/office-inbound-call?site=samplesite&callernum=${caller_id_number}&callerid=${caller_id_name}
It's mostly working just fine however as the ${caller_id_name} has spaces in it, rather than converting to %20 curl is just ending the request, i'm able to catch the caller ID name prior to the first space but nothing after.
My thought here is to pipe ${caller_id_name} into a new variable, ie ${caller_id_name_api} and run a replace on that variable to change spaces to %20 prior to consuming it in the curl action.
Has anyone done anything like this before?
Thanks