I have a string in sprintf
and I would like to split it into multiple lines as it gets big and the code gets messed up.
sprintf(srt,"GET %s HTTP/1.1\r\nAccept: text/javascript\r\nUser-Agent: Custom HTTP User Agent\r\nHost: %s\r\nConnection: Close\r\n\r\n, url, host);
How could I split this into multiple rows by making the code more organized? For example:
GET %s HTTP/1.1\r\n
Accept: text/javascript\r\n
User-Agent: Custom HTTP User Agent\r\n
Host: %s\r\n
Connection: Close\r\n
\r\n