I am struggling to solve the following issue:
I have a site I would like to post to, but the site has a hidden field called 'token,' which refreshes with every page refresh.
To successfully post the form, I need that hidden field included in my POST request.
If I do a GET request with GUZZLE, then use preg_match to obtain the 'token' value and then call POST request, I am still getting an error that the token is incorrect.
I assume it is because the form gets refreshed with each GUZZLE call?
Simply can't get my head around it; any help would be appreciated.
Thank you