邮递员将带有正文表单数据的请求发送到JSON [英] Postman request with body Form data to json

查看:106
本文介绍了邮递员将带有正文表单数据的请求发送到JSON的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的邮递员有问题...

I have a problem with postman...

一方面,我可以使用表单数据中的正文提出此请求。

For one side, I can make this request with the body in form data.

但是,当我尝试在raw(json)中发送与正文相同的请求时,

But, when I try to send the same request with the body in raw(json) I got this:

我正在尝试发送数据通过Angular 5到Drupal 8后端。

I am trying to send the data via Angular 5 to a Drupal 8 Backend.

谢谢!

推荐答案

这将取决于后端是否可以接收JSON格式。

It will depend if the backend can receive a JSON format.

就我而言,我正在使用Drupal 8模块简单Oauth。 OAuth 2.0承载令牌的格式实际上是在单独的规范 RFC 6750 中描述的。

In my case, I am working with the Drupal 8 Module simple Oauth. and the The format for OAuth 2.0 Bearer tokens is actually described in a separate spec, RFC 6750.

更具体的此处


实体主体遵循
application / x-www-form-urlencoded内容的编码要求类型,如HTML
4.01 [W3C.REC-html401-19991224]定义。

The entity-body follows the encoding requirements of the "application/x-www-form-urlencoded" content-type as defined by HTML 4.01 [W3C.REC-html401-19991224].

因此,在我的特殊情况下,我将尝试从angular发送表单数据。

So, In my particular case, I will try to send a form-data from angular.

感谢:吉恩·罗斯坦

这篇关于邮递员将带有正文表单数据的请求发送到JSON的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆