Command prompt having trouble escaping quotes and braces

curl (3) globbing empty string within braces in column
curl globbing
curl single quotes windows
curl: (6) could not resolve host: application
curl illegal port number
curl: (3) [globbing] nested brace in column
how to run curl command in windows powershell
how to make a post request in windows

I am trying to execute the following line in command prompt:

curl -X POST -d '{ "method" : "account_info", "params" : [ { "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh"} ] }' http://s1.ripple.com:51234

However, I get the following:

curl: (6) Could not resolve host: method
curl: (7) Failed connect to :80; No error
curl: (6) Could not resolve host: account_info,
curl: (6) Could not resolve host: params
curl: (7) Failed connect to :80; No error
curl: (3) [globbing] illegal character in range specification at pos 2
curl: (3) [globbing] unmatched brace at pos 2
curl: (6) Could not resolve host: account
curl: (7) Failed connect to :80; No error
curl: (3) [globbing] unmatched close brace/bracket at pos 35
curl: (3) [globbing] unmatched close brace/bracket at pos 1
curl: (3) [globbing] unmatched close brace/bracket at pos 1
unable to parse request

I am on windows, and the error has to do with quotes, braces, and globbing. I tried escaping quotes by preceding them with a backslash, with no luck.

I am sure I just need to escape the right stuff, in the right way, but am having a hard time doing it. Some help would be highly appreciated.


Try this:

curl -X POST -d "{ \"method\" : \"account_info\", \"params\" : [ { \"account\" : \"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh\"} ] }" http://s1.ripple.com:51234

cURL POST command does not work on Windows Command , I tried escaping quotes by preceding them with a backslash, with no luck. I am sure I just need to escape the right stuff, in the right way, but am having a hard time  Teams. Q&A for Work. Stack Overflow for Teams is a private, secure spot for you and your coworkers to find and share information.


You can use curl -g to turn off globbing:

curl -g -X POST -d '{ "method" : "account_info", "params" : [ { "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh"} ] }' http://s1.ripple.com:51234

Easier than escaping all those brackets.

Quotes, Escape Characters, Delimiters - Windows CMD, Command prompt having trouble escaping quotes and braces. Question. I am trying to execute the following line in command prompt: curl -X POST -d  The command line parser simply ends in one or the other of the two states. If there is an even number of un-escaped double quote characters on the command line (we will define escape later) the parser ends in InterpretSpecialChars. If there is an odd number of un-escaped double quote characters it ends in IgnoreSpecialChars.


Try the basic one to post something.

curl -X POST --data '{"username":"username", "password":"password"}' --header "Content-Type:application/json" http://127.0.0.1:8000/your_url/

[SOLVED] Curl(?) differences linux/windows, Windows Command Prompt treats quotes differently when compared to the Unix unmatched close brace/bracket in column 8 {"cause":null,"message":"No suitable This is not a huge problem and also makes the command a little harder to Changed simple quotes to double quotes in cURL commands Some commands (e.g. REG and FINDSTR) use the standard escape character of \ (as used by C, Python, SQL, bash and many other languages.) The \ escape can cause problems with quoted directory paths that contain a trailing backslash because the closing quote " at the end of the line will be escaped \".


In above responses, it is important to note that datas are specified in JSON format, which should require to specify --header as @Alok answer.

It is also possible to define it in "url" format like this:

curl -X POST --data "method=account_info&params=[…]" http://s1.ripple.com:51234

and avoid to specify --header "Content-Type…"

Beginning Xcode, How-to: Escape Characters, Delimiters and Quotes at the Windows command line. To launch a batch script with spaces in the Program Path requiring "​quotes" Delimiters separate one parameter from the next - they split the command line up The \ escape can cause problems with quoted directory paths that contain a  You need to figure out what myscript accepts as a literal double quote and then specify that in your command, using ^ to escape any characters that have special meaning to the Windows command shell. Given that myscript is also available on Unix, perhaps \" does the trick. Try


Practical Programming in Tcl/Tk, Trouble Shooting Command Line Interface No, if you look closely the inner single and double quotes in YOUR example looks different then  Escape Characters. All DOS versions interpret certain characters before executing a command. Some well know examples are the percent sign ( % ), and the redirection symbols ( < | > ). Windows 95/98 and NT, and OS/2 too, also interpret double quotes ( " ) and ampersands ( & ), as shown in the Conditional Execution page.


Batch files - Escape Characters, Lines that have no characters selected (lines shorter than the first column) are not the brace, parentheses, bracket, single quote, and double- quote characters. The Find➪Go To Line (Command+L) command lets you jump to a specific line  I'm having trouble with escaping characters in bash. I'd like to escape single and double quotes while running a command under a different user. For the purposes of this question let's say I want to echo the following on the screen: 'single quote phrase' "double quote phrase"


Introduction, The backslash in the next example is required; otherwise the expr command gets Second, a backslash as the last character in a line is converted into a space, and Double quotes and curly braces are used to group words together into one​  Have you tried to add your argument string directly to the cfexecute arguments parameter instead of using a variable? See if it works differently. If you are trying to escape the quotation marks then try using two quotes instead of backslash quote; like this arguments="-a -b ""c"" ""d"" -e"