Force HTTP and HTTPs and added delay in sending function