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: Question about special characters in URL query parameters

From: Bill Mercer via curl-users <curl-users_at_lists.haxx.se>
Date: Wed, 22 Sep 2021 15:14:48 +0000

Both of those will hit the server, but what it returns will depend on how the server handles those characters.
If the server is automatically translating those characters, curl may not be able to fix this.


From: curl-users <curl-users-bounces_at_lists.haxx.se> On Behalf Of Junior Gantin via curl-users
Sent: Wednesday, September 22, 2021 10:15 AM
To: curl-users_at_lists.haxx.se
Cc: Junior Gantin <nioperas06_at_gmail.com>
Subject: Question about special characters in URL query parameters

Hello all,

Is it possible to pass special characters (or french accent characters) in URL query parameters without having a `curl: (52) Empty reply from server` error?

Example:
curl -L "https://example.com?name=RenéFrançois<https://example.com?name=Ren%C3%A9Fran%C3%A7ois>" this will return empty reply
curl -L "https://example.com?name=ReneFrancois<https://example.com/?name=Ren%C3%A9Fran%C3%A7ois>" this will hit the server

Thanks.

-- 
Unsubscribe: https://lists.haxx.se/listinfo/curl-users
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2021-09-22