简体   繁体   English

如何使用Curl和Postman构造HTTP请求

[英]how to Construct an HTTP request using Curl and Postman

在此处输入图片说明 在此处输入图片说明

I want to get response from this given data, my question is how to set the content type, accept, curl in postman in order to get the response. 我想从给定的数据中获取响应,我的问题是如何设置内容类型,接受并卷曲邮递员以获取响应。 help is much appreciated 非常感谢帮助

I am used to Postman,so i can help you on that. 我已经习惯了邮递员,所以我可以为您提供帮助。 1.First you have to select method type which is there beside URL field. 1.首先,您必须选择URL字段旁边的方法类型。 2.then go to header tab and there you can give key as Content-Type,Authorisation,Accept and in value field you can pass your values ex-key ->"Content-Type" and value -> "application/json" 2.然后转到标题选项卡,您可以在其中提供密钥,如Content-Type,Authorisation,Accept,并在值字段中可以传递值ex-key->“ Content-Type”和value->“ application / json”

在此处输入图片说明

You can import curl commands directly by clicking on the Import button and then pasting the curl command in the Paste Raw Text tab: 您可以通过单击“ 导入”按钮直接将curl命令导入 ,然后在“ 粘贴原始文本”选项卡中粘贴curl命令:

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM