curl-library
Re: how to avoid "_" getting encoded in querystring when using curl-7.15.1
Date: Wed, 26 Nov 2014 11:01:44 +0100 (CET)
On Wed, 26 Nov 2014, Ivneet Kaur wrote:
> Thanks for letting me join you guys here.
Welcome!
> *curl_escape* is encoding "_" in querystring to "%5F" which is what I want
> to avoid.
>
> I think* curl_easy_escape* will help me.
Upgrading to libcurl >= 7.21.2 will help you, as that is the first release
that treats underscore differently.
> Is there a patch that I can apply directly to 7.15.1 in order to be able to
> use curl_easy_escape? If yes, please point me to it.
If you can allow a patch, why not just simply update to a later libcurl
version instead? You're stuck with a very very old libcurl version!
> Else, what alternatives do I have?
1. Do the escaping yourself instead of using the libcurl function
2. Only use the libcurl function to escape the string parts that surround the
underscores and put the final result together.
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2014-11-26