Use vars_get for send_request_{cgi,raw}

First batch. Will continue pushing fixes to this until it is landed.