我在终点站的指挥下运行了这一指挥。
curl -H "Content-Type:application/json" -H "Accept:application/json" -H -d "{"request":{"parent_rrn":"8809073722344","kid_guid":"blah-blah"}}" http://localhost:8080/api/validate -u username:password
成功运行
但是,我不得不根据测试要求通过以下参数:
-H “Content-Type:application/json”,-uusername:password
i 尝试了以下法典,但这些内容细节和查阅细节没有通过,见下面的我的法典。
post validate ,:request => "{"kid_rrn":"93name":"kid1","parent_rrn":"8809073722344","kid_guid":"blah-blah"}", :header => { Authendication : username:password , Content_Type : application/json }
Could you please help me, how do i add headers in this?
Thanks Pragash