The Australian Government coat of Arms

Communities of practice

Communities of practice

Pulling the public holiday data via visual basic webrequest is no longer available

Hi,

I have a desktop visual basic.net application which makes a call to public holiday listings from data.gov.au.
I am using System.Net.WebRequest.

It used to be working fine for a couple of years, until very recently. It is now coming up with the error remote server (403) forbidden.

If I copy paste the request address into the normal google chrome, it still gives me the result, but not from the webrequest function.
How do I authenticate my webrequest to be permitted to read it again?

The url I want to read from the webrequest is

https://data.gov.au/data/api/3/action/datastore_search?resource_id=d256f989-8f49-46eb-9770-1c6ee9bd2661

Which is the list of public holiday for 2022.

Thank you for your help,

Eko