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 --- curl/request-with-large-attachment/.gitignore | 1 + .../gen-large-request.sh | 82 ++++++++++++++++++++++ curl/request-with-large-attachment/to_container.sh | 2 + .../request-with-large-attachment/to_standalone.sh | 2 + 4 files changed, 87 insertions(+) create mode 100644 curl/request-with-large-attachment/.gitignore create mode 100755 curl/request-with-large-attachment/gen-large-request.sh create mode 100755 curl/request-with-large-attachment/to_container.sh create mode 100755 curl/request-with-large-attachment/to_standalone.sh (limited to 'curl/request-with-large-attachment') diff --git a/curl/request-with-large-attachment/.gitignore b/curl/request-with-large-attachment/.gitignore new file mode 100644 index 0000000..b6137f1 --- /dev/null +++ b/curl/request-with-large-attachment/.gitignore @@ -0,0 +1 @@ +request.xml 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 diff --git a/curl/request-with-large-attachment/to_container.sh b/curl/request-with-large-attachment/to_container.sh new file mode 100755 index 0000000..0aff27b --- /dev/null +++ b/curl/request-with-large-attachment/to_container.sh @@ -0,0 +1,2 @@ +#!/bin/sh +curl -v --header "Content-Type: text/xml;charset=UTF-8" --header "SOAPAction: \"\"" http://localhost:8080/moa-zs/services/mzs --data-binary @request.xml diff --git a/curl/request-with-large-attachment/to_standalone.sh b/curl/request-with-large-attachment/to_standalone.sh new file mode 100755 index 0000000..95ae8c6 --- /dev/null +++ b/curl/request-with-large-attachment/to_standalone.sh @@ -0,0 +1,2 @@ +#!/bin/sh +curl -v --header "Content-Type: text/xml;charset=UTF-8" --header "SOAPAction: \"\"" http://localhost:8080/services/mzs --data-binary @request.xml -- cgit v1.2.3