I’m sending a POST to a URL, with content type as application/x-www-form-urlencoded and in the POST body parameters I’m including some special characters (like ‘+’ or ‘/’). These characters get replaced and instead of sending this:
IQEAAAAAAPAwAACkAAgAFBoRs7uBp+QfWhMlIECvWSkYecAmAAEABAAAAAEABwAIAAABN+zvnLkABwAIAAABN/IV97gAAgAIL5fPC5UyYdQABAAgSlVOUFRTRElPUwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAEdXMAAQAEAARhMAAAAAgAGFVQMTA4Mi1CTFVTMzA5NjJfMDAAAAAAAAABAAQgAAIAAAAAAAAAAAAwAgBEAAgABJLoupYACAA4MDYCGQCF4DyVJ+rNZIwlm9UN9PgfPa4atwaQouQCGQCDyM0SOtwsvmmIkBVzFdcDM/Lgzb08WII=
It’s sending this
IQEAAAAAAPAwAACkAAgAFBoRs7uBp QfWhMlIECvWSkYecAmAAEABAAAAAEABwAIAAABN zvnLkABwAIAAABN/IV97gAAgAIL5fPC5UyYdQABAAgSlVOUFRTRElPUwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAEdXMAAQAEAARhMAAAAAgAGFVQMTA4Mi1CTFVTMzA5NjJfMDAAAAAAAAABAAQgAAIAAAAAAAAAAAAwAgBEAAgABJLoupYACAA4MDYCGQCF4DyVJ rNZIwlm9UN9PgfPa4atwaQouQCGQCDyM0SOtwsvmmIkBVzFdcDM/Lgzb08WII=
I’m storing the parameter on a String variable in Java. Please notice that the + gets replaced with a bare space and the / get replaced with \/. Please help. I’m
You may want to try URLencoding the
POST, but without seeing your code there’s no way to tell if that will work.