cancel
Showing results for 
Search instead for 
Did you mean: 

post data with PI Http receiver, but '+' changed to space.

Former Member
0 Kudos

Recently, I post data to the external system using pi7.11 http receiver channal. i just send  encryped string which is populated by java mapping. but when the external system receive the data, the '+' of the string is changed to space. e.g. the output string from pi7.11 is  "data=ZS7s30P+6loqpp6iBdUBeNtqmb5+azF/KUic1",  the received string is "data=ZS7s30P 6loqpp6iBdUBeNtqmb5 azF/KUic1",  how can i avoid the url escape?

the code of javamapping  which i used is so easy:

    outdata = "data=ZS7s30P+6loqpp6iBdUBeNtqmb5+azF/KUic1";

    output.getOutputPayload().getOutputStream().write(outdata.getBytes("UTF-8"));

Accepted Solutions (1)

Accepted Solutions (1)

markangelo_dihiansan
Active Contributor
0 Kudos

Hi,


the code of javamapping  which i used is so easy:

outdata = "data=ZS7s30P+6loqpp6iBdUBeNtqmb5+azF/KUic1";

Can you try using %2B instead of +?

Regards,

Mark

Former Member
0 Kudos

I tried,  it seems that external http server received the correct string.

thanks.

markangelo_dihiansan
Active Contributor
0 Kudos

Hi Dazhong,

Did the escape fix it or you are still verifying?

Regards,
Mark

Former Member
0 Kudos

fixed.  thanks.

Answers (0)