So I'm trying to develop a program that will send a snapshot command to an IP camera, and then save the resulting jpeg to a local file. If I navigate to the URL specified in the webPage
string with a browser, I am prompted for the username/password and then presented with a page with the snapshot. When I attempt to do the same thing with my program, I get a connection refused error on opening the inputstream. I'm certain there isn't a firewall/port issue since I can get to the page with a browser on the same machine, and it is a http rather than a https address.
Am I on the wrong track with how I am trying to go about doing this?
Code:
Error: