Add auto 30x redirect to send_request_cgi
Better check and better follow redirect