Hello,
I am trying to use ODK Collect on an emulator and to connect to a PHP script which simulates Aggregate...
The URL is http://localhost/test/odk, having /formList and /formXml as subdirs.
The whole URL of http://localhost/test/odk is secured via Apache Basic Auth (.htaccess and .htpasswd).
In ODK Collect, I chose Server Settings / Type: Other, and URL: http://10.0.2.2/test/odk .
When I try to access the URL http://10.0.2.2/test/odk/formList via the emulator browser, I get the login popup, and then after having logged in, I get the form list XML:
Headers:
HTTP/1.1 200 OK
Date: Wed, 23 Aug 2017 13:43:18 GMT
Server: Apache/2.4.17 (Win32) OpenSSL/1.0.2j PHP/5.6.28
X-Powered-By: PHP/5.6.28
X-OpenRosa-Version: 1.0
X-OpenRosa-Accept-Content-Length: 110100480
Content-Length: 1318
Keep-Alive: timeout=5, max=99
Connection: Keep-Alive
Content-Type: text/xml; charset=UTF-8
Content:
<?xml version="1.0" encoding="UTF-8"?> <xforms xmlns="http://openrosa.org/xforms/xformsList"> <xform> <formID>82da89d0-83ce-11e5-a837-0800200c9a661446728863</formID> <name>Miramare Observation Form V1</name> <majorMinorVersion>20151105140743</majorMinorVersion> <version>1</version> <hash>md5:b83cd486086eddca7194ae452e8eedb0</hash> <downloadUrl>http://10.0.2.2/test/odk/formXml/?formId=82da89d0-83ce-11e5-a837-0800200c9a66</downloadUrl> </xform> <xform> <formID>8bc6ee80-83ce-11e5-a837-0800200c9a661446735948</formID> <name>Zafira-B Blower Check V1</name> <majorMinorVersion>20151105160548</majorMinorVersion> <version>1</version> <hash>md5:cf9693489b9f6ac1b9c82be8ab1640ea</hash> <downloadUrl>http://10.0.2.2/test/odk/formXml/?formId=8bc6ee80-83ce-11e5-a837-0800200c9a66</downloadUrl> </xform> <xform> <formID>c7a69486-0121-11e4-b1f7-b2227cce2b541449481267</formID> <name>Early Warning V2</name> <majorMinorVersion>20151207104107</majorMinorVersion> <version>2</version> <hash>md5:19afbfa2ae6f5b6cb3a9fc808e55bee8</hash> <downloadUrl>http://localhost/test/odk/formXml/?formId=c7a69486-0121-11e4-b1f7-b2227cce2b54</downloadUrl> </xform> </xforms>
However, when I try to [Get Blank Form] in ODK Collect, it shows the login popup but [Ok] does nothing.
Any help would be appreciated!
Thanks in advance.
Regards
Joachim