T
Thy
Bonjour
I use CAtlHttpClient to send parameters to a Linksys router by HTTP protocol
(SNMP not activated by default). HTTP is password protected.
I use Ethereal/WinPCap to trace exchange beetween PC and router.
When I try to get datas (ATL_HTTP_METHOD_GET) , CAtlHttpClient try first to get
datas without password, Router send error 401, so CAtlHttpClient retry with
password.
When I try to post datas (ATL_HTTP_METHOD_POST), CAtlHttpClient try first to
send datas without password. As router doesn't answer error 401, CAtlHttpClient
doesn't retry to send datas with password.
The only solution I've found is to add encrypted password to the header, but
it's not a good solution (the password will change and I don't know the encoding
method).
Is there a solution to force CAtlHttpClient to send password without waiting
errors 401 or 407 as describe in Microsoft documentation ?
TIA.
I use CAtlHttpClient to send parameters to a Linksys router by HTTP protocol
(SNMP not activated by default). HTTP is password protected.
I use Ethereal/WinPCap to trace exchange beetween PC and router.
When I try to get datas (ATL_HTTP_METHOD_GET) , CAtlHttpClient try first to get
datas without password, Router send error 401, so CAtlHttpClient retry with
password.
When I try to post datas (ATL_HTTP_METHOD_POST), CAtlHttpClient try first to
send datas without password. As router doesn't answer error 401, CAtlHttpClient
doesn't retry to send datas with password.
The only solution I've found is to add encrypted password to the header, but
it's not a good solution (the password will change and I don't know the encoding
method).
Is there a solution to force CAtlHttpClient to send password without waiting
errors 401 or 407 as describe in Microsoft documentation ?
TIA.