I have a task to fetch html from a website, before I go to that page I need to log in.
I use a low-level api url fetch service. Here is my code test code:
Commonly, when you're trying to emulate a postBack on the asp.net, you need to POST:
login
, password
)__VIEWSTATE
, __VIEWSTATEENCRYPTED
(even if it's empty!), __EVENTVALIDATION
__EVENTTARGET
and __EVENTARGUMENT