Hi,
I want to post data to a website using curl of fsockopen. Everything works fine with both curl and fsockopen but only if there are post variables but if i have action url something like this:
http://www.abc.com?page_num=4&page_size=10
and i have some post variables as well like:
$post_data='searchType=WEEKLY'
now the website abc.com works in the way that it has "page_num" and "page_size" as query string and "searchType" as post variables.
In this scenario its not getting result from the result page and says: BAD REQUEST
How to resolve this?
In html this should look like:
<form method="post" action="http://www.abc.com?page_num=4&page_size=10">
<input type="hidden" name="searchType" value="WEEKLY">
</form>
How to send the above request using curl that contains both querystring variables and as well as post variable???
Thanks,
Zeeshan