如何处理Postman密码中带有特殊字符的URL? [英] How to handle URL with special characters present in password in Postman?

查看:855
本文介绍了如何处理Postman密码中带有特殊字符的URL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的网址格式如下。

http://username:password@test.nabin.com/some/url

此处的密码类似于 qDTA * $ X)ME / 74 。当我直接在URL中使用此密码时,邮递员不会响应。我应该如何继续测试该URL?

Here password is something like qDTA*$X)ME/74. When I directly use this password in URL, then the postman does not respond. How should I proceed testing this url?

(在图像中,响应容器为纯白色,没有任何错误。这表明API从未被点击)

(In the image the response container is plain white without any error. This indicates, the API was never hit)

推荐答案

您可以在应用程序中手动编码部分URL。这些是版本6中的文档。

You can manually encode parts of the URL within the application. These are the docs from version 6.

https://learning.postman.com/docs/postman/sending-api-requests/requests/#sending-parameters

在URL部分下:

注意:您在URL栏或数据编辑器中输入的参数将不会自动进行URL编码。右键单击一段选定的文本,然后选择 EncodeURIComponent以手动编码参数值。

"Note: Parameters you enter in the URL bar or in the data editor will not automatically be URL-encoded. Right click a piece of selected text, and select "EncodeURIComponent" to manually encode the parameter value."

这篇关于如何处理Postman密码中带有特殊字符的URL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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