[ODK Community] HTTP Reponse header status code?

I just replied a similar question on the opendatakit-developers thread
(which is more appropriate for this type of question).

··· On Wed, Jul 11, 2012 at 8:11 AM, wrote:


I'm trying to use the Collect client to work with my own backend on a LAMP
server (no Java!). The docs imply that this is possible, but there's not
much detail on making it work. (If I can make it work I'll be happy to
contribute some!) I've been trying to make my submission handler

I already have the form list/download functions working nicely on my
server, but I'm getting an error when submitting a completed form. The
error displayed by the Collect client is:

"Error: Invalid status code on Head request."

If I use a browser to GET the submission URL I've set up, the response
headers are:

HTTP/1.1 200 OK
Date: Wed, 11 Jul 2012 14:57:23 GMT
Server: Apache
X-Powered-By: PHP/5.2.17
Expires: Mon, 26 Jul 1997 05:00:00 GMT
Cache-Control: no-cache, must-revalidate
Pragma: no-cache
Content-Language: en
X-OpenRosa-Version: 1.0
X-OpenRosa-Accept-Content-Length: 2000000
Last-Modified: Wed, 11 Jul 2012 14:57:23 GMT
Content-Length: 0
Connection: close
Content-Type: text/xml; charset=utf-8

That looks fine to me, but I note in the source for Collect that the error
is triggered by any HTTP response status-code between 200 and 299
inclusive: see line 230 here:


I don't understand this - surely a 200 status code in the response
indicates all is well?

Am I missing something really obvious? Sorry if I am, I'm quite
experienced at LAMP stuff but a newbie at Java.

Grateful for any suggestions!


Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

Mitch Sundt
Software Engineer
University of Washington