From 6d0584891fb4d4bc56aa1733d8b93537102474e3 Mon Sep 17 00:00:00 2001 From: Christof Rabensteiner Date: Wed, 18 Dec 2019 13:08:29 +0100 Subject: Add "large attachment" Example to curl Folder --- .../gen-large-request.sh | 82 ++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100755 curl/request-with-large-attachment/gen-large-request.sh (limited to 'curl/request-with-large-attachment/gen-large-request.sh') diff --git a/curl/request-with-large-attachment/gen-large-request.sh b/curl/request-with-large-attachment/gen-large-request.sh new file mode 100755 index 0000000..e537a1a --- /dev/null +++ b/curl/request-with-large-attachment/gen-large-request.sh @@ -0,0 +1,82 @@ +#!/bin/sh + +echo -n ' + + + + + + + kkvj693+tw99uW8UPuEK9en1LzZItkylPajkUUyJJDWQB78VGPkAuhCEk+TD12yQDD/WRglsf+JfQpjubIs/4l/ptluJ9teF3nwkNlu5Dm7mIjzgW1qxrDyomCmPvVxTWOCBuMUbOWRZBhOq+KvDQAu9Vv9KnqSfjYeDZrpHYu4= + urn:publicid:gv:at:cemtoken + + Bundesministerium für Testzwecke + + https://authority.gv.at/delivery_notification + + + + + Max + Mustermann + + 1940-01-01 + + + AT + 1010 + Wien + + Muststrasse + 10 + + + + + delivery-request-id + + VKABC + + WichtigeMitteilung + RSa + + + ' > request.xml +head -c 50000000 < /dev/zero | base64 >> request.xml +echo -n ' + large-file-witz-zeros + application/pdf + + SHA1 + ' >> request.xml +head -c 50000000 < /dev/zero | sha1sum -b | awk '{print $1}' | xxd -r -p | base64 >> request.xml +echo -n ' + + 50000000 + + + false + + + true + tmp/responses + + true + + false + + http://localhost/appurl + 0 + 0 + + + + + + + +' >> request.xml -- cgit v1.2.3