#!/usr/bin/env bash

USERNAME=""
PASSWORD=""
PRODUCT_CODE=""
CUSTOMER_CODE=""
ITEM_CODE=""


for i in {1..50}; do
    curl -s -u "$USERNAME:$PASSWORD" -d "quantity=1" https://cheddargetter.com/xml/customers/add-item-quantity/productCode/$PRODUCT_CODE/code/$CUSTOMER_CODE/itemCode/$ITEM_CODE 2>&1 >> /dev/null &
    #Used this alternative URL to make sure curl itself 
    #is not dropping some of the requests asked of it... all 50 were indeed registered
    #curl "http://localhost/postbacktest.php"
    echo "started request $i"
done
