Files
swift-nio/sh-tests/tests_01_http/test_03_post_random_bytes.sh
T

12 lines
328 B
Bash

#!/bin/bash
source defines.sh
token=$(create_token)
start_server "$token"
dd if=/dev/urandom of="$tmp/random.bytes" bs=$((64*1024)) count=1
do_curl "$token" --data-binary "@$tmp/random.bytes" \
"http://foobar.com/dynamic/echo" > "$tmp/random.bytes.out"
cmp "$tmp/random.bytes" "$tmp/random.bytes.out"
stop_server "$token"