This tool helps you to generate PHP code based on Curl Command. Copy and Paste Curl Command and Generate PHP.
cURL is an open-source command line tool that downloads files from the web. It supports a variety of protocols, including HTTP, HTTPS, FTP, SFTP, TFTP, Gopher and others.
cURL is normally used with the -O option to redirect output to a file or -O --output-document=file to force it generate output in the given file name. However if input is given as a FIFO or named pipe and curl reads data from it as an input stream then this option won't have any effect.