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
- Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ] [ by messages with attachments ]
From: Paul Gilmartin via curl-users <curl-users_at_lists.haxx.se>
Date: Wed, 22 Sep 2021 09:17:35 -0600
On Sep 22, 2021, at 08:15:26, Junior Gantin wrote:
>
> 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" this will return empty reply.
>
Works for me with:
uname -svr
Linux 4.19.0-17-amd64 #1 SMP Debian 4.19.194-3 (2021-07-18)
431 $ curl --version
curl 7.79.0 (x86_64-pc-linux-gnu) libcurl/7.79.0 OpenSSL/1.1.1l zlib/1.2.11
432 $ curl -L "https://example.com?name=RenéFrançois" | head
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1256 100 1256 0 0 20361 0 --:--:-- --:--:-- --:--:-- 20590
<!doctype html>
<html>
<head>
<title>Example Domain</title>
...
Have you tried:
curl -L "https://example.com?name=Ren%C3%A9Fran%C3%A7ois"
(How is this supposed to use the query-string?)
> curl -L "https://example.com?name=ReneFrancois" this will hit the server
-- gil
Date: Wed, 22 Sep 2021 09:17:35 -0600
On Sep 22, 2021, at 08:15:26, Junior Gantin wrote:
>
> 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" this will return empty reply.
>
Works for me with:
uname -svr
Linux 4.19.0-17-amd64 #1 SMP Debian 4.19.194-3 (2021-07-18)
431 $ curl --version
curl 7.79.0 (x86_64-pc-linux-gnu) libcurl/7.79.0 OpenSSL/1.1.1l zlib/1.2.11
432 $ curl -L "https://example.com?name=RenéFrançois" | head
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1256 100 1256 0 0 20361 0 --:--:-- --:--:-- --:--:-- 20590
<!doctype html>
<html>
<head>
<title>Example Domain</title>
...
Have you tried:
curl -L "https://example.com?name=Ren%C3%A9Fran%C3%A7ois"
(How is this supposed to use the query-string?)
> curl -L "https://example.com?name=ReneFrancois" this will hit the server
-- gil
-- Unsubscribe: https://lists.haxx.se/listinfo/curl-users Etiquette: https://curl.haxx.se/mail/etiquette.htmlReceived on 2021-09-22