Well this may be something on the PC side of XOJO with a potential aspect to Axis Camera devices but that makes less sense to me at this point and here is why.
First - background:
In this effort I am sending an http request to Axis Cameras - not Companion Cameras. [quote]That is important because Axis Companion Cameras are locked down from such requests[/quote]
Second:
On OS X - Using the same URL address and placing this request into the Web Address area in Safari, Firefox or Chrome I am presented with the standard login request and once completed I receive a result as expected by Axis VAPIX documentation.
On Windows doing the same using Microsoft Edge, Chrome or Firefox I receive the same as in OS X.
Third:
I have attempted various ways to change the suggestions with no solution. I still receive
[quote]
401 Unauthorized
Unauthorized
This server could not verify that you
are authorized to access the document
requested. Either you supplied the wrong
credentials (e.g., bad password), or your
browser doesn't understand how to supply
the credentials required.
[/quote]
What is interesting though is after looking at the response my request is answered
[quote]
401 Unauthorized
Unauthorized
This server could not verify that you
are authorized to access the document
requested. Either you supplied the wrong
credentials (e.g., bad password), or your
browser doesn't understand how to supply
the credentials required.
Brand.ProdNbr=P3225-LV[/quote]
In OSX using the same request this is what is returned
[quote]Brand.ProdNbr=P3225-LV
[/quote] and that is a complete copy of what is received in Content from PageReceived event
In XOJO to prepare I use the following
Dim _url As Text
Dim a As String
_url = "http://" + IP_TF.Text.ToText + "/axis-cgi/param.cgi?action=list&group=Brand.ProdNbr"
// Create CameraStreamSocket (Xojo.Net.HTTPSocket)
Dim _controller1 As New DeviceInfo_Socket()
_controller1.Address = IP_TF.Text.ToText
_controller1.RequestType = DeviceInfo_Socket.Info_Request_Type.ProdNbr
a = EncodeBase64(Camera_Username + ":" + Camera_Password,0)
_controller1.RequestHeader("Authorization") = "basic " + a.ToText
// Send the request to download the Device Info
_controller1.Send("GET", _url)
// Add socket to array of Device Info sockets.
pDeviceInfo_Sockets.Append(_controller1)
Since multiple web browser responses are the same on both OS X and Windows it appears this may be something on the Win - XOJO side.
I can see how to ‘kludge’ around this however I think it better to find out how to properly address this so responses are correct. Any other suggestions? Thanks