Differences between revisions 3 and 4
Revision 3 as of 2020-01-21 03:11:48
Size: 250
Editor: PieterSmit
Comment:
Revision 4 as of 2020-01-21 03:13:49
Size: 493
Editor: PieterSmit
Comment:
Deletions are marked like this. Additions are marked like this.
Line 6: Line 6:
}}}
   * or {{{
curl -H "Origin: https://mydomain.nz" -H "Access-Control-Request-Method: GET" -H "Access-Control-Request-Headers: X-Requested-With" -X OPTIONS --verbose https://vigor.nz 2>&1 | grep -i "access\|cors"
Line 7: Line 10:
----
CategoryLinux

Using Curl to access web pages

  • Links: Security/Web , Linux/OpenSSL

  • Check Headers e.g. CORS (access-control-allow-origin:) headers

    $ curl -k -sD - -H "Origin: https://wiki.vigor.nz" -o /dev/null https://wiki.vigor.nz/
    • or

      curl -H "Origin: https://mydomain.nz" -H "Access-Control-Request-Method: GET" -H "Access-Control-Request-Headers: X-Requested-With"   -X OPTIONS --verbose https://vigor.nz 2>&1 | grep -i "access\|cors"


CategoryLinux

Linux/Curl (last edited 2023-04-17 10:18:01 by PieterSmit)