Skip to content

Instantly share code, notes, and snippets.

@lfender6445
Created May 26, 2020 14:58
Show Gist options
  • Save lfender6445/d0c189c5644dbb74f4d04fa854b701c9 to your computer and use it in GitHub Desktop.
Save lfender6445/d0c189c5644dbb74f4d04fa854b701c9 to your computer and use it in GitHub Desktop.
#! /bin/bash
function runCheck() {
while :; do
curl 'https://ww8.ikea.com/clickandcollect/us/receive/' \
-H 'authority: ww8.ikea.com' \
-H 'pragma: no-cache' \
-H 'cache-control: no-cache' \
-H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36' \
-H 'dnt: 1' \
-H 'content-type: application/x-www-form-urlencoded' \
-H 'accept: */*' \
-H 'origin: https://order.ikea.com' \
-H 'sec-fetch-site: same-site' \
-H 'sec-fetch-mode: cors' \
-H 'sec-fetch-dest: empty' \
-H 'referer: https://order.ikea.com/us/en/checkout/delivery/' \
-H 'accept-language: en-US,en;q=0.9' \
--data 'payload={"selectedService":"fetchlocation","customerView":"mobile","locale":"en_US","selectedServiceValue":"00ad4803-ca89-498c-b285-b85abf476427","slId":"1241241241","articles":[{"articleNo":"30301624","count":2},{"articleNo":"50335208","count":1},{"articleNo":"70335212","count":1},{"articleNo":"S89324614","count":1},{"articleNo":"00261295","count":1}]}&backUrl=https://order.ikea.com/us/en/checkout/delivery/&hmac=f9e8d1adef15519729e3ee43d4d0595f29908148' \
--compressed
now=$(date)
echo "\n"
echo "$now"
echo "-------------------------"
sleep 300
done
}
runCheck
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment