My problem is similar to this:
HTTPclient POST with problematic web site
I used tamper data to find all the request going through the client and server.
I initially executed the get request to load the page and get the dynamically generated field values. Then I created the list of named value pairs for all the input fields of the concerned form and executed post req, however it redirects me to an error page.
I tried setting cookie and handling sslfactory in all possible ways suggested on stackoverflow:
but it’s not working for me.
I don’t know what’s the problem, I don’t even get any error in logs.
I spent a couple of days on this single issue.
The solution was using the same HttpClient without any need of maintaining cookies or anything else.
Firstly find all the request(get or post) those are made using tamper data. Then extract the dynamically generated hidden field values:
Then for post use this method:
That’s it.