我正在向 URL 发送一个POST
内容类型为的 URL,application/x-www-form-urlencoded
在POST
正文参数中我包含一些特殊字符(如“+”或“/”)。这些字符被替换,而不是发送:
IQEAAAAAAPAwAACkAAgAFBoRs7uBp + QfWhMlIECvWSkYecAmAAEABAAAAAEABwAIAAABN + zvnLkABwAIAAABN / IV97gAAgAIL5fPC5UyYdQABAAgSlVOUFRTRElPUwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAEdXMAAQAEAARhMAAAAAgAGFVQMTA4Mi1CTFVTMzA5NjJfMDAAAAAAAAABAAQgAAIAAAAAAAAAAAAwAgBEAAgABJLoupYACAA4MDYCGQCF4DyVJ + rNZIwlm9UN9PgfPa4atwaQouQCGQCDyM0SOtwsvmmIkBVzFdcDM / Lgzb08WII =
它正在发送这个
IQEAAAAAAPAwAACkAAgAFBoRs7uBp QfWhMlIECvWSkYecAmAAEABAAAAAEABwAIAAABN zvnLkABwAIAAABN / IV97gAAgAIL5fPC5UyYdQABAAgSlVOUFRTRElPUwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAEdXMAAQAEAARhMAAAAAgAGFVQMTA4Mi1CTFVTMzA5NjJfMDAAAAAAAAABAAQgAAIAAAAAAAAAAAAwAgBEAAgABJLoupYACAA4MDYCGQCF4DyVJ rNZIwlm9UN9PgfPa4atwaQouQCGQCDyM0SOtwsvmmIkBVzFdcDM / Lgzb08WII =
我将参数存储在 Java 中的 String 变量中。请注意,+
替换为裸空间,/
替换为\/
. 请帮忙。我是