From ePrize Developers Wiki
Submit FAQ
$ curl -i -X POST -H "Accept: text/xml" \
-dfirst_name=john \
-dlast_name=smith \
-demail="john.smith@sample.com" \
-dissue_type=login \
-dquestion="how do I log in?" \
http://test.url.eprize.com/v1/eprize/ews12/faq
HTTP 200 (OK)
Cache-Control: no-cache
Connection: close
Date: Fri, 23 Jul 2010 19:00:15 GMT
Pragma: no-cache
Server: POE HTTPD Component/0.09 (5.008008)
Content-Length: 60
Content-Type: text/xml; charset=utf-8
Expires: Fri, 23 Jul 2010 19:00:15 GMT
<?xml version="1.0" encoding="UTF-8" ?>
<result>1</result>
Invalid email address and issue type
$ curl -i -X POST -H "Accept: text/xml" \
-dfirst_name=john \
-dlast_name=smith \
-demail="john.smith_sample.com" \
-dissue_type=winning \
-dquestion="how do I log in?" \
http://127.0.0.1:10001/v1/solution/instantwinv2/faq
HTTP 400 (Bad Request)
Cache-Control: no-cache
Connection: close
Date: Fri, 23 Jul 2010 19:11:08 GMT
Pragma: no-cache
Server: POE HTTPD Component/0.09 (5.008008)
Content-Length: 237
Content-Type: text/xml; charset=utf-8
Expires: Fri, 23 Jul 2010 19:11:08 GMT
<?xml version="1.0" encoding="UTF-8" ?>
<result>
<input_error>
<name>email</name>
<error>VALIDATION</error>
</input_error>
<input_error>
<name>issue_type</name>
<error>VALIDATION</error>
</input_error>
</result>