I am trying to find a way in a bash script to POST data and get the results back from a web page, so I can automate the process.
I understand curl is probably the tool for the job however I can not get the syntax correct.
Using the web developer program in firefox I have found the following the code that is executed from the web page when manually entering a UK town name on the following broadband checking page.
<form method="POST" action="/broadband/exchange_search" id="exchangesearch-form">
And also this code is used.
<input maxlength="60" type="text" name="exchange_search[exchange]" id="exchange-input" /> <button id="submit-exchangesearch">Search</button>
I have tried the following curl command but am unsuccessful in getting results.
Please can someone show me how this could work, I have read various information on curl but I am having no luck so far.