Expect: 100-continue for POST over 1 kb


(andrew.prince@accor.com) #1

I am building a link into an API that takes SQL type queries via a REST call. In order to keep some elements private, I am using a REST Resource asset with a POST method. Everything works perfectly until the body of my request exceeds 1kb, at which point I receive a 417 HTTP response.

 

I have looked into the likely cause of this response and found it is something to do with the Expect: 100-continue header. 

 

Is there any way in matrix to not send the Expect: 100-continue in the REST resource? I have searched online and can only find things relating to microsoft products. I also cannot find a generic "Expect: False" type of header that can be set to ignore the Expect header.

 

Would appreciate any help or insight.


(andrew.prince@accor.com) #2

Okay, nevermind.  
I have found the solution, whilst sending
 

Expect:

does not work in the headers, sending

 

Expect: with a trailing space does work.