curl / Mailing Lists / curl-users / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: character substitution

From: Paul Gilmartin via curl-users <curl-users_at_cool.haxx.se>
Date: Thu, 12 Aug 2021 12:43:57 -0600

On Aug 12, 2021, at 11:51:08, Peter Johnson via curl-users <curl-users_at_cool.haxx.se> wrote:
>
> When running the following script with Curl 7.71 the plus symbol (+) is substituted for blank spaces. Any advice?
>
> curl -k -G -b e:\exero\cmds\curl\bin\monsta https://nms.xxxxxxx.xxx/api/rest/command/device.update --data-urlencode "deviceserial=230059&devicename=Camera -WP 5FL FILE RM&tag1=IP Camera&tag2=IFS03CFOCWST&tag3=WP&tag4=WP 5FL FILE RM&tag5=us-ny-119&model=IFS03CFOCWST Network camera 07-29-2019 Illustra.SS004.01.06.05.0026&vendor=illustra"
>
See RFC 1738.

In query strings, "+" is used as a substitute for blank. Curl may be designed to anticipate
Or compensate for that.

Try encoding (selected) " " as "%20", others as "+"..

-- gil


-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2021-08-12