Hi Don,
By going to the page in your browser of choice and then taking whatever option there is to look at the source of the page, and hope that you can recognise or find what you are looking for. And / or maybe use Wireshark to see what the browser sends back when you press the Next button after having entered the registration number.
I notice that on the first time you also need to agree with Ts & Cs by simulating clicking on a check box, so add that to the requirements. I am unsure whether the server would track your subsequent attempts as part of the same "session" and thus remove the requirement for the agree with Ts & Cs for subsequent iterations..
So you need to determine when the registration expires on around 4000 trailers (or maybe other vehicles).
Isn't there existing paperwork and / or a system with this info?
Or are you only now implementing it and trying to pick up the existing data relatively free of data entry errors?
Regards,
Kevin Wright
-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Don Brown
Sent: Thursday, 11 April 2019 2:14 PM
To: MIDRANGE-L <midrange-l@xxxxxxxxxxxxxxxxxx>
Subject: HTTPAPI POST How to click the Next button
I remember reading somewhere, possibly a document by Scott Klemment that
HTTPAPI could imitate a person using a browser ... whish I could find that
document.
I have a requirement to collect some information from a public web site
and no web services are available for the content I am looking to
retrieve.
The url is:
https://my.service.nsw.gov.au/MyServiceNSW/index#/rms/freeRegoCheck/details
You can then enter a vehicle registration number and click next. T3580 is
a valid registration number.
EXAMPLE4 uses a WebForm to post values to the page. How do I find the
name of the input for the Registration number on the web page ?
The how do I click the Next button from my program ?
Any comments, links or examples appreciated.
This is NOT a long term solution, I just need to get the details for about
4000 records Once.
Thakns
Don Brown
As an Amazon Associate we earn from qualifying purchases.