I felt like send_request_raw is cleaner so I decided to use it instead of send_request_cgi.