1

I'm using SOCKET (WINSOCK2.H) to connect to IP camera. After connect, I want to send the command "GET /nphMotionJpeg?Resolution=640x480&Quality=Standard HTTP/1.1\r\n\r\n" to get video stream. But this command is not successful because the camera is protected by authentication basic.

Now, I want to insert into request command username and password but i don't know the syntax to do it.

1
  • 1
    You'd do yourself a favour using something like libcurl rather than trying to implement HTTP yourself. Since you appear to be using win32, you could even look into using WinINet. Commented Feb 10, 2012 at 13:03

1 Answer 1

2

the syntax is explained in the related wikipedia article: https://en.wikipedia.org/wiki/Basic_access_authentication

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.