Solved
Does submitRequest() ignore post_data when HTTP verb is DELETE?
Hi,
I'm on UniVerse 11.1.9 running on Linux. My question is about the CallHTTP function, submitRequest(). I'm using code like the below to communicate with an external web service.
It seems that when the http_method passed to createRequest() is DELETE, then submitRequest() ignores the post_data passed to it. That is to say the value of post_data is not included in the body of the request.
Can any confirm if this is expected behavior?
I'm on UniVerse 11.1.9 running on Linux. My question is about the CallHTTP function, submitRequest(). I'm using code like the below to communicate with an external web service.
result = createRequest(PROXY.URL,http_method,request_handle)
IF result # 0 THEN ERRORS<-1> = 'createRequest() failed with return code ':result; GO FATAL.ERROR
result = setRequestHeader(request_handle,"Content-Type","application/json")
IF result # 0 THEN ERRORS<-1> = 'setRequestHeader() failed with return code ':result; GO FATAL.ERROR
result = submitRequest(request_handle,30000,post_data,response_headers,response_data,http_status)
It seems that when the http_method passed to createRequest() is DELETE, then submitRequest() ignores the post_data passed to it. That is to say the value of post_data is not included in the body of the request.
Can any confirm if this is expected behavior?