add User-Agent to GET call to PHP page

All,

my application calls an PHP page to retrieve a user ID. It is using this:

UserID = http.Get("http://www.datamundi.be/customers/SDL120814/getuser.php?mail="+usermail, 30)

Since yesterday my application does not work anymore because the company that hosts the server, had to take counter measures agains scrapers/bot scriptswithout UA (User-agent). So now I don’t get a UserID back but a “Error 412 user-agent incorrect”.

I need to add a user agent to my call.

Does anyone know how to do this?

thanks

gert

http.SetRequestHeader(“User-Agent”,)

where can be:
“Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/600.1.17 (KHTML, like Gecko) Version/7.1 Safari/537.85.10”
or
“Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:32.0) Gecko/20100101 Firefox/32.0”

or you can find an accepted user agent for your app

Thanks Antonio. This solves the problem indeed!