I use PHP script to send POST DATA variables to URL and then URL responses a HTML string. How can I capture screenshot of HTML string above as it's displayed on browser. It is the best solution if i don't need send 2 POST requests, one for HTML content and one for screenshot.
UPDATE: add more information. My website crawls html content from other website (by sending POST data to it and then get its response). It is only a string of HTML. Beside, I want to get a screenshot of this response that it's shown on browser as what end-user can see. All action is done in server-side.