(401) Unauthorized on subsequent requests?

Hi, I'm trying to make a call to url using the code below. The url points to XML files in a virtual folder (under basic auth) my dev server and returns XML to my local machine OK. But when I run this code on the same server as where the url points to, it works once then returns on repeated requests..

Share This Page

Welcome to The Coding Forums!

Welcome to the Coding Forums, the place to chat about anything related to programming and coding languages.

Please join our friendly community by clicking the button below - it only takes a few seconds and is totally free. You'll be able to ask questions about coding or chat with the community and help others.
Sign up now!