Skip to content

Instantly share code, notes, and snippets.

@ddouhine
Created December 16, 2014 15:48
Show Gist options
  • Save ddouhine/319e05c27052173ca008 to your computer and use it in GitHub Desktop.
Save ddouhine/319e05c27052173ca008 to your computer and use it in GitHub Desktop.
wget --header "Cookie: chocolate=AKAR6yG2ZFQo5N6I9ONSmygsW0f" --header "User-Agent: Mozilla/4.0" --header "Accept: text/html" -i url.txt -p
write output in a file:
curl http://1.1.1.1 -o output
change UserAgent:
curl -A "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0" http://1.1.1.1
http-ntlm auth:
curl --ntlm -u 'DOMAIN\user:passwd' http://1.1.1.1
post:
curl -i -s -k -X 'POST' -H 'Content-Type: text/xml' --data-binary $'<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:urn=\"urn:SAPControl\">\x0d\x0a <soapenv:Body>\x0d\x0a <urn:ListLogFiles/>\x0d\x0a </soapenv:Body>\x0d\x0a</soapenv:Envelope>' 'http://'$1':'$2'/SAPControl.cgi'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment