Made that grader work. It writes entire web page to a tmp file and reads from that file just like in exmple code