Changed the send_request_raw into send_request_cgi function.