dimagi/commcare-hq — pull request #425 by sravfeyn (2013-06-10 10:49:37+00:00)
Title: Adds "received_on" header in POST request for form forwarding.

Fixes following case http://manage.dimagi.com/default.asp?62551#353472, "Add "received_on" header to the form forwarding API".

- Modified simple_post() in submodules/dimagi-utils-src/utils/post.py to accept an optional headers parameter. Added a separate commit
- Added received_on header for form forwarding.

I have setup a simpleHttpServer to test the modification in POST request of form-forwarding. But I haven't been able to test, as form submission on localhost was not working. Code modification is trivial in any case. I hope somebody can test this. Following is the reason I am not able to test on local.
- After running jython xformserver and running multithreaded django server, form submission still gave 500 error, while xformserver received the form submission data.