URLConnection not authenticating

I have an application that pulls data from an online database using the URLConnection. I can connect when I run the application from my Macbook, and even though the AuthenticationRequested event never fires (placed a MessageBox inside the event and never shows), the ContentReceived event fires and I am able to view he odata. When I run the application on my Windows laptop I get a message “ 401 - Unauthorized: Access is denied due to invalid credentials. You do not have permission to view this directory or page using the credentials that you supplied.”

Why is the AuthenticationRequested not firing on the Mac or Windows app, and why am I able to pull valid odata on the Mac without logging into the website?