【问题标题】:Postman request with # character is not responding the proper output带有 # 字符的邮递员请求未响应正确的输出
【发布时间】:2020-05-27 18:39:26
【问题描述】:

我正在尝试获取名称中包含“#”的模型的特定对象 ex:obj#1 像这样,但是当我使用此对象检索其相关属性时,我收到如下错误: "error-message": "请求无法完成,因为相关数据模型内容不存在"

您能否建议我以任何方式在邮递员中请求我的对象?

【问题讨论】:

标签: url get request character postman


【解决方案1】:

您在 URL 中使用“#”吗?它是一个保留字符,需要进行编码。 在这里您可以看到保留的 URL 字符以及如何对其进行编码: https://en.wikipedia.org/wiki/Percent-encoding

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-04-16
    • 2018-01-19
    • 1970-01-01
    • 2018-09-15
    • 1970-01-01
    相关资源
    最近更新 更多