cURL POST command line on WINDOWS RESTful service
| 
 My problem: Running windows 7 and using the executable command line tool to curl my localhost server api for POST data was returning me an error that seems to be really common. The request was being sent properly with the exception that the data was not reaching the server as it should causing my REST service to insert data with null values. What seems to be causing the error: imagine something like this 
 Result of the returning data 
After some searching i figured out that problem couldn't be the sintax used for the request since it works on UNIX shells. 
 I tried to work around with those " escaping it \" but it still didn't work 2. 
 3. 
 So i gave up. Windows seems to messing up with the JSON object sent on POST  | 
|||||||||
  | 
| 
 I ran into the same issue on my win7 x64 laptop and was able to get it working using the curl release that is labeled Win64 - Generic w SSL by using the very similar command line format: 
Which only differs from your 2nd escape version by using double-quotes around the escaped ones and the header parameter value. Definitely prefer the linux shell syntax more.  | 
cURL POST command line on WINDOWS RESTful service的更多相关文章
- Cookies with curl the command line tool
		
w https://curl.haxx.se/docs/http-cookies.html curl has a full cookie "engine" built in. If ...
 - [转]How do I run msbuild from the command line using Windows SDK 7.1?
		
本文转自:http://stackoverflow.com/questions/6319274/how-do-i-run-msbuild-from-the-command-line-using-win ...
 - How to install IIS 7.5 on Windows 7 using the Command Line
		
原文 How to install IIS 7.5 on Windows 7 using the Command Line On Windows Vista, to install IIS 7.0 f ...
 - Create Windows Server 2008 cluster from the command line
		
How to create a Windows Server 2008 cluster from the command line? Creating a cluster in Server 2008 ...
 - [Windows]远程管理服务WinRM远程管理Windows服务器 Invalid use of command line. Type "winrm -?" for help.
		
运行环境 Windows 2012 R2 1. Windows需要打开WinRM服务,Server系统默认打开,默认端口5985 # WinRM服务查看 PS C:\Users\Administrat ...
 - MySQL 5.7 Command Line Client输入密码后闪退和windows下mysql忘记root密码的解决办法
		
MySQL 5.7 Command Line Client输入密码后闪退的问题: 问题分析: 1.查看mysql command line client默认执行的一些参数.方法:开始->所有程序 ...
 - windows 8 安装 oracle 11g 报错:command line option syntax error,type command/? for help
		
windows 8 安装 oracle 11g 报错:command line option syntax error,type command/? for help 在windows8操作系统上安装 ...
 - [RabbitMQ]Windows环境下rabbitmqclt(Command Line Tools)出现Erlang distribution failed错误的解决方法
		
摘要 当使用rabbitmqctl时出现Erlang distribution failed,把%SystemRoot%Windows\System32\config\systemprofile下的. ...
 - 如何在Windows下开发Python:在cmd下运行Python脚本+如何使用Python Shell(command line模式和GUI模式)+如何使用Python IDE
		
http://www.crifan.com/how_to_do_python_development_under_windows_environment/ 本文目的 希望对于,如何在Windows下, ...
 
随机推荐
- [Javascript] Functor Basic Intro
			
Well, this stuff will be a little bit strange if you deal with it first time. Container Object: Just ...
 - EF: Returns multi table from procedure
			
原文:https://msdn.microsoft.com/en-us/data/jj691402.aspx
 - Hibernate缓存原理与策略  Hibernate缓存原理:
			
Hibernate缓存原理: 对于Hibernate这类ORM而言,缓存显的尤为重要,它是持久层性能提升的关键.简单来讲Hibernate就是对JDBC进行封装,以实现内部状态的管理,OR关系的映射等 ...
 - Android最佳实践之UI篇
			
http://sr1.me/way-to-explore/2015/03/25/best-practice-for-android-ui.html
 - [Z] 关于c++ typename的另一种用法
			
在看c++ primer的时候见到了一下这种用法: typedef typename std::vector<int>::size_type size_type; 觉得这里面的typena ...
 - IOS实现中间凸起圆形TabBar
			
中间凸起的圆形TabBar曾经比较流行,类似于闲鱼之类的APP就使用了中间凸起TabBar,这两天自己动手实现了一个,效果图如下: 大致原理:重写UITabBar和UITabBarController ...
 - 彻底理解JAVA动态代理
			
代理设计模式 定义:为其他对象提供一种代理以控制对这个对象的访问. 代理模式的结构如下图所示. 动态代理使用 java动态代理机制以巧妙的方式实现了代理模式的设计理念. 代理模式示例代码 public ...
 - Java版的Quartz表达式生成器,同时适用于Quartz.net(免费下载)
			
Quartz是OpenSymphony开源组织在Job scheduling领域又一个开源项目,它可以与J2EE与J2SE应用程序相结合也可以单独使用.Quartz可以用来创建简单或为运行十个,百个, ...
 - 程序员编程艺术第三十六~三十七章、搜索智能提示suggestion,附近点搜索
			
第三十六~三十七章.搜索智能提示suggestion,附近地点搜索 作者:July.致谢:caopengcs.胡果果.时间:二零一三年九月七日. 题记 写博的近三年,整理了太多太多的笔试面试题,如微软 ...
 - [原]Android Native Debug
			
1,安装adt插件,cdt插件2,SDK目录配置: Eclipse文件菜单选择“Window”--->“Preferences”--->“Android”--->设置“SDK Loc ...