Skip to content

Commit

Permalink
Also disable cURL's use of HTTP/1.1 expect logic
Browse files Browse the repository at this point in the history
This is only a useful optimization for large payloads, and seems to confuse some Cisco ASAs or middleboxes.

See https://gms.tf/when-curl-sends-100-continue.html#disabling-expect-logic

Signed-off-by: Daniel Lenski <dlenski@gmail.com>
  • Loading branch information
dlenski committed May 6, 2020
1 parent 8ac132f commit 1b35388
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trojans/csd-post.sh
Expand Up @@ -151,7 +151,7 @@ fi
COOKIE_HEADER="Cookie: sdesktop=$TOKEN"
CONTENT_HEADER="Content-Type: text/xml"
URL="https://$CSD_HOSTNAME/+CSCOE+/sdesktop/scan.xml?reusebrowser=1"
curl $PINNEDPUBKEY -H "$CONTENT_HEADER" -H "$COOKIE_HEADER" --data-binary @$RESPONSE "$URL" > $RESULT
curl $PINNEDPUBKEY -H "$CONTENT_HEADER" -H "$COOKIE_HEADER" -H 'Expect: ' --data-binary @$RESPONSE "$URL" > $RESULT

cat $RESULT || :

Expand Down

0 comments on commit 1b35388

Please sign in to comment.