Modified the push cgi request to output to file