RESI API response failing with string passed with "\n".
I have requirement to pass in the below string value that has "\n" in the request body however the backend reciving the corrupted string and response is failing.
I have requirement to pass in the below string value that has "\n" in the request body however the backend reciving the corrupted string and response is failing.
"\n SciTegic10142119002D\n\n 54 59 0 0 1 0 999 V2000\n 1.2990 -0.7500 0.0000 C 0 0\n 1.2990 0.7500 0.0000 C 0 0\n 0.0000 1.5000 0.0000 C 0 0\n -1.2990 0.7500 0.0000 C 0 0\n -1.2990 -0.7500 0.0000 C 0 0\n 0.0000 -1.5000 0.0000 C 0 0\n 0.0031 -3.0008 0.0000 C 0 0\n -1.2946 -3.7531 0.0000 O 0 0\n 1.3039 -3.7494 0.0000 N 0 0\n 1.3070 -5.2502 0.0000 S 0 0\n 2.6078 -5.9988 0.0000 C 0 0\n 0.0065 -4.5027 0.0000 O 0 0\n 0.0093 -6.0025 0.0000 O 0 0\n 2.6100 -7.4988 0.0000 C 0 0\n 3.9101 -8.2469 0.0000 C 0 0\n 5.2080 -7.4951 0.0000 C 0 0\n 5.2059 -5.9951 0.0000 C 0 0\n 3.9058 -5.2469 0.0000 C 0 0\n 6.5030 -5.2401 0.0000 N 0 3\n 6.4988 -3.7401 0.0000 O 0 0\n 7.8045 -5.9860 0.0000 O 0 5\n 6.5073 -8.2463 0.0000 N 0 0\n 6.5073 -9.7471 0.0000 C 0 0 1 0 0 0\n 7.8066 -10.4983 0.0000 C 0 0\n 7.8066 -11.9992 0.0000 S 0 0\n 9.1059 -12.7504 0.0000 C 0 0\n 5.2089 -10.4998 0.0000 C 0 0\n 5.2106 -12.0006 0.0000 C 0 0\n 3.9128 -12.7529 0.0000 O 0 0\n 0.0000 3.0008 0.0000 N 0 0\n 1.2978 3.7529 0.0000 C 0 0\n 1.2954 5.2529 0.0000 C 0 0\n -0.0048 6.0009 0.0000 N 0 0\n -1.3026 5.2488 0.0000 C 0 0\n -1.3002 3.7488 0.0000 C 0 0\n -0.0103 7.5017 0.0000 C 0 0\n 9.1081 -14.2504 0.0000 C 0 0\n 10.4082 -14.9986 0.0000 C 0 0\n 11.7062 -14.2468 0.0000 C 0 0\n 11.7041 -12.7468 0.0000 C 0 0\n 10.4040 -11.9986 0.0000 C 0 0\n -1.3123 8.2482 0.0000 C 0 0\n -1.3199 9.7482 0.0000 C 0 0\n -2.6228 10.4916 0.0000 C 0 0\n -3.9180 9.7351 0.0000 C 0 0\n -3.9104 8.2351 0.0000 C 0 0\n -2.6076 7.4917 0.0000 C 0 0\n -0.0241 10.5052 0.0000 C 0 0\n 1.2800 9.7639 0.0000 C 0 0\n 2.5740 10.5225 0.0000 C 0 0\n 2.5641 12.0225 0.0000 C 0 0\n 1.2601 12.7638 0.0000 C 0 0\n -0.0340 12.0052 0.0000 C 0 0\n 3.8581 12.7811 0.0000 Cl 0 0\n 19 20 2 0\n 19 21 1 0\n 1 2 2 0\n 2 3 1 0\n 3 4 2 0\n 4 5 1 0\n 5 6 2 0\n 6 1 1 0\n 6 7 1 0\n 7 8 2 0\n 7 9 1 0\n 9 10 1 0\n 10 11 1 0\n 10 12 2 0\n 10 13 2 0\n 11 14 2 0\n 14 15 1 0\n 15 16 2 0\n 16 17 1 0\n 17 18 2 0\n 18 11 1 0\n 17 19 1 0\n 16 22 1 0\n 23 22 1 1\n 23 24 1 0\n 24 25 1 0\n 25 26 1 0\n 23 27 1 0\n 27 28 1 0\n 28 29 1 0\n 3 30 1 0\n 30 31 1 0\n 31 32 1 0\n 32 33 1 0\n 33 34 1 0\n 34 35 1 0\n 35 30 1 0\n 33 36 1 0\n 26 37 2 0\n 37 38 1 0\n 38 39 2 0\n 39 40 1 0\n 40 41 2 0\n 41 26 1 0\n 36 42 1 0\n 42 43 2 0\n 43 44 1 0\n 44 45 2 0\n 45 46 1 0\n 46 47 2 0\n 47 42 1 0\n 43 48 1 0\n 48 49 2 0\n 49 50 1 0\n 50 51 2 0\n 51 52 1 0\n 52 53 2 0\n 53 48 1 0\n 51 54 1 0\nM CHG 2 19 1 21 -1\nM STY 1 1 SUP\nM SLB 1 1 1\nM SAL 1 3 19 20 21\nM SBL 1 1 22\nM SMT 1 NO2\nM END\n$$$$\n"
The same string passed in a Postman request works sucessfully. the REST API is POST. Do i need to set any specific header for encoding?