Jonkman Microblog
  • Login
Show Navigation
  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Conversation

Notices

  1. Dr. Roy Schestowitz (罗伊) (schestowitz@pleroma.site)'s status on Monday, 13-Jul-2020 06:42:53 EDT Dr. Roy Schestowitz (罗伊) Dr. Roy Schestowitz (罗伊)
    #curl needs to #deletegithub and distance itself from #microsoft or it'll be EEEd (like many other projects) https://blog.didierstevens.com/2020/07/12/quickpost-curl/
    In conversation Monday, 13-Jul-2020 06:42:53 EDT from pleroma.site permalink

    Attachments

    1. File without filename could not get a thumbnail source.
      Quickpost: curl
      By Didier Stevens from Didier Stevens

      Since I learned that Windows 10 has curl pre-installed now, I notice I use it more often.

      Here are some quick notes, mainly for myself:

       

      Using Tor:

      curl –socks5-hostname 127.0.0.1:9050 http://didierstevens.com

      Option socks5-hostname uses SOCKS5 protocol and does name resolution of the hostname via the SOCKS5 protocol (and not local DNS)

       

      Removing the User-Agent header:

      curl –header “User-Agent:” http://didierstevens.com

      Option –header (-H) can also be used to remove a header: provide the header name with colon, provide no header value.

       

      Using a custom User-Agent header (-A –user-agent):

      curl –user-agent “Mozilla/5.0 DidierStevens” http://didierstevens.com

       

      Saving received data:

      curl –dump-header 01.headers –output 01.bin.vir –trace 01.trace –trace-time http://didierstevens.com

      Option —dump-header (-D) saves the headers, option –output (-o) saves the body, –trace creates a trace file and –trace-time adds timestamps to the trace file.

       

      Option to ignore certificate errors: -k –insecure

       

      Putting it all together:

      curl –socks5-hostname 127.0.0.1:9050 –user-agent “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36” –insecure –dump-header 01.headers –output 01.data –trace 01.trace –trace-time https://didierstevens.com

       


      Quickpost info


  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

Jonkman Microblog is a social network, courtesy of SOBAC Microcomputer Services. It runs on GNU social, version 1.2.0-beta5, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All Jonkman Microblog content and data are available under the Creative Commons Attribution 3.0 license.

Switch to desktop site layout.