3
Guys, it wasn’t the first time or the last time I had to implement an automatic routine that accesses a website or system created on the Webforms platform to capture information.
It has been extremely costly to be able to do any form of automation for capture and automatic navigation in this type of web application only with Webrequests(C#) and/or Webclient (C#).
Note that here I am totally disregarding the possibility of using an Internetexplorer.Application since I do not intend to use interface dependent objects to run (run on servers, services, etc)
Is there any more practical way that I’m not glimpsing ?
It’s not in the requested languages, but for almost everything I need, I make http requests normally, simulating browser headers and storing cookies in variables. It has worked very well, including for sites that use ajax and similar (the secret is to look at the entry points of Apis). To extract the data from the pages I created a simple function Extract( &sourcedapagina, stringinicial, stringfinal ) - if I pass the page by reference, the extracted some of the string, good to extract repetitive data. It’s brute force, but it’s fast and light.
– Bacco