cURL / Mailing Lists / curl-users / Single Mail

curl-users

curl adds 0a(line feed) and 0d(CR) when doing an HTTP POST

From: Pedro Neves <pneves_at_cisco.com>
Date: Thu, 24 Jan 2002 23:44:00 -0800

Hi,

When I type the following command:
  curl -# -H Content-Type: --data-ascii "mtu inside 1200" -u uall:uall
http://16.152.1.28:80/config
curl will add the following symbols:
   0d(CR)
   0a(line feed)
to the HTTP POST.

When I type the following command:
  curl -# -u uall:uall -H Content-Type: --data-binary @configmtu.txt
http://16.152.1.28:80/config
curl will add the following symbol:
   0a(line feed)
to the HTTP POST.

My "configmtu.txt" file just has this string "mtu inside 1200" with no CR.

Is there any way to avoid this behaviour ?
If not, could you point me to the code that I would have to change to
achieve this.

Thanks a lot,

Pedro Miguel Neves
Received on 2002-01-25