There's this website: yamli.com which provides a form to transcript latin to arabic words.
I checked the source code and found out that it uses an HTML form:
<form id="search_form" action="http://api.yamli.com/search.ashx" method="get" >
The input I'm interested in is:
<input id="search_input" name="q" type="text" dir="rtl" size="60" maxlength="2048" autocomplete="off" tabindex="1"/>
So it's q.
My curl request is:
curl -X POST -d "q=test" http://yamli.com/search.ashx -o /tmp/response
But the result seems to be a 3xx code, telling me that the page has moved (... and if curl is used with redirect it redirects to the main webpage):
<head><title>Document Moved</title></head> <body><h1>Object Moved</h1>This document may be found <a HREF="http://www.yamli.com/">here</a></body>
Is there anything I'm missing here?