File: tryssl.sh

package info (click to toggle)
apt-cacher-ng 2-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,032 kB
  • ctags: 1,705
  • sloc: cpp: 16,869; sh: 536; ansic: 404; perl: 377; makefile: 124
file content (7 lines) | stat: -rwxr-xr-x 323 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
#!/bin/sh
set -x
: should work
wget -O response.txt --post-file=body.txt https://bugs.debian.org/cgi-bin/soap.cgi --header "Content-Type: text/xml; charset=utf-8"
: should fail
wget -O/dev/null --post-file=body.txt https://bugs.debian.org:80/cgi-bin/soap.cgi --header "Content-Type: text/xml; charset=utf-8" && exit 1 ||: