I need to send XML data through curl.exe under windows using a PUT request.
At the tip, I found:
-d / - data <data> HTTP POST-data (H)
What should I provide for <data>
curling test calls
# with inlining plain data curl -X PUT -d "payload" http://localhost # referrring file curl -X PUT -d @myXmlFile.xml http://localhost
If your windows curl port does not support it, go cygwin . It is a linux-like environment for windows, and also offers the "right" curl.
In windows, if the bicode argument itself contains a double quote character, the double quote must be doubled.
, "This is" " " "" "" " ", Unix.
:
curl -X PUT -d "This is ""quoted"" payload" http://localhost
in windows you will need to put @ inside quotes for the file to be sent:
curl -XPUT --data-binary "@uploadme.txt"
otherwise, you will get strange errors as it tries to use the contents of the file as a URL:
curl: (6) Couldn't resolve host 'upload' curl: (6) Couldn't resolve host 'me!'
(uploadme.txt contains "upload me!")
Source: https://habr.com/ru/post/1776482/More articles:Convert MPG to AVI using ffmpeg.exe in C # - c #One source with multiple objects - c ++https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1776479/how-do-i-include-references-to-web-services-in-nant-or-cscexe&usg=ALkJrhjBI-YMe32Znvo7chgF4PzY9668KQASP.NET MVC inline tags do not work with - asp.nethttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1776481/aspnet-mvc-unit-tests-fake-repository-has-become-unwieldy&usg=ALkJrhiSrwnbwJ5Yzglf_Ix9ck70WE4-1QHow to convert a BufferedImage to an image? - javaHow to pass dev_appserver parameters for django-nerel - google-app-engineКаковы различия между базами данных NoSQL и чем они отличаются от традиционных реляционных баз данных? - databasePrevent window closing using jQuery? - jqueryHow to prevent jquery event from triggering in dropdown list provided that event is connected - jqueryAll Articles