Modify send_beacon to be more http compliant