[asterisk-users] CURLOPT(useragent) fails with Set requires an '=' to be a valid assignment

Joshua C. Colp jcolp at sangoma.com
Mon Dec 14 12:53:07 CST 2020


On Mon, Dec 14, 2020 at 2:51 PM Jonathan H <lardconcepts at gmail.com> wrote:

> Thank you.
>
> Yes, the useragent string does indeed contain semicolon, and as most
> seem to, how can I set the (useragent) to a valid useragent?
>
> And does that mean I can never SET something with a semicolon in the
> string, even if wrapped in quotes?
>
> Sorry if I'm being thick here!
>

The character to escape it is "\" thus: "\;" would tell the config parser
to not treat it as a comment.

-- 
Joshua C. Colp
Asterisk Technical Lead
Sangoma Technologies
Check us out at www.sangoma.com and www.asterisk.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20201214/24bdd170/attachment.html>


More information about the asterisk-users mailing list