curl(1) -is www.example.com %3E trial.txt
transfer a URL
-i, --include
       (HTTP) Include the HTTP-header in the output. The HTTP-header includes  things  like  server-name,
       date of the document, HTTP-version and more...
-s, --silent
       Silent or quiet mode. Don't show progress meter or error messages.  Makes Curl mute.
source manpages: curl