Forms Web Request - Request body failure

  • 30 September 2020
  • 2 replies
  • 4 views

Badge +5

Hi, I have an error with my Web Request control. Every time I save the control, the "Request body" gets saved as a single line. Resulting in a request response HTTP 400.

 

9127i6464DAAEB0EE43AB.png

 

When I remove the Request body and insert it again from text the request response is fine.

9129i225AC87EF2595B80.png

 

Whenever I save and publish the form the output stays blank, it keep messing up the Request body. When I change it to input from a "Named control" and manually do it from the form, it works fine. But I can't ask my users to input the XML themselves 🙂 

 

Any solution? Am I doing something wrong?

 

Thanks.


2 replies

Userlevel 2
Badge +9

Hi @ahaaften If you put the entire request on one line (or 'minify' it) the request should stop reading the spaces between some of the XML nodes and send the request properly.

Badge +5
Perfect! Thanks @nicksha

Reply