Created
February 11, 2019 18:04
-
-
Save lancehudson/e3d01c8b2b7408dd93241234813523e0 to your computer and use it in GitHub Desktop.
aws unsubscribe
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# xargs -n 1 ./run.sh <list.txt | |
EMAIL=$1 | |
if [ -z "$EMAIL" ] | |
then | |
echo "No email address supplied" | |
exit 1 | |
fi | |
curl 'https://pages.awscloud.com/index.php/leadCapture/save2' -H 'Origin: https://pages.awscloud.com' -H 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'Referer: https://pages.awscloud.com/communication-preferences' -H 'DNT: 1' --data 'FirstName=&LastName=&Company=&Phone=&Country=&preferenceCenterCategory=no&preferenceCenterGettingStarted=no&preferenceCenterOnlineInPersonEvents=no&preferenceCenterMonthlyAWSNewsletter=no&preferenceCenterTrainingandBestPracticeContent=no&preferenceCenterProductandServiceAnnoucements=no&preferenceCenterSurveys=no&preferenceCenterOtherAWSCommunications=no&PreferenceCenter_Language_Preference__c=&Title=&Job_Role__c=&Industry=&Level_of_AWS_Usage__c=&LDR_Solution_Area__c=&Unsubscribed=yes&UnsubscribedReason=I%20already%20get%20email%20from%20another%20account&unsubscribedReasonOther=&useCaseMultiSelect=&formid=19260&formVid=19260' --compressed --data-urlencode "Email=$EMAIL" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment