cURL / Mailing Lists / curl-users / Single Mail

curl-users

Why URL encoding takes place in different ways in Linux and in Windows?

From: kme <k-me_at_rambler.ru>
Date: Thu, 31 Mar 2016 06:27:38 +0300

Command in Linux:

curl --verbose --insecure --get --data-urlencode text=привет --url https://yandex.ru/search/

command output:

> GET /search/?text=%D0%BF%D1%80%D0%B8%D0%B2%D0%B5%D1%82 HTTP/1.1
> User-Agent: curl/7.26.0
> Host: yandex.ru
> Accept: */*
.................
.................

Command in Windows:

curl.exe --verbose --insecure --get --data-urlencode text=привет --url https://yandex.ru/search/

command output:

> GET /search/?text=%EF%F0%E8%E2%E5%F2 HTTP/1.1
> User-Agent: curl/7.40.0
> Host: yandex.ru
> Accept: */*
.................
.................

Why URL encoding takes place in different ways in Linux and in Windows?

-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-users
FAQ: https://curl.haxx.se/docs/faq.html
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2016-03-31