Can't change Content Type of Trigger "Send HTTP POS

Posted by Rollbase User on 20-May-2012 22:07

I am trying to configure a trigger of type "Send HTTP POST Request" to send a HTML form request. For this to work, I need to set "Content Type" as "application/x-www-form-urlencoded; charset=UTF-8". Unfortunately, whatever the value I set the "Content Type" field, the request is always sent to the server as type "text/xml". Can you help and correct this behavior?

All Replies

Posted by Admin on 21-May-2012 12:04

I'll take a look.

Posted by Admin on 22-May-2012 11:56

This should work now.

Posted by Admin on 27-May-2012 09:19

Thanks.

It is working.

Posted by Admin on 27-May-2012 22:45

In order to make it works, I have done the following :



1) I created a document template using a xml file containing a HTTP POST QUERY (This looks like a GET QUERY):

field1=one&field2=two&field3=three



2) I used this template with a HTTP POST trigger



3) I changed the Content Type to "application/x-www-form-urlencoded



This trigger will work as html form posted from a browser.



Posted by Admin on 27-May-2012 23:19

Cool

This thread is closed