Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Https URL fail #1

Open
huaraz opened this issue Apr 9, 2020 · 0 comments
Open

Https URL fail #1

huaraz opened this issue Apr 9, 2020 · 0 comments

Comments

@huaraz
Copy link

huaraz commented Apr 9, 2020

When using Winhhtpdiag with a HTTPS URL and a proxy it uses GET http://fqdn:443 which is wrong.

It seems this sections needs to change when a proxy is used i.e. when an automatic proxy configuration is used it will have to be evaluated first before creating the request. Does WinHttpSendRequest use a SSLSocket when connecting ?

//
// Create the HTTP request handle.
//
printf("\n->Calling WinHttpOpenRequest with Object name : %S\r\n",ObjectName);
hRequest = WinHttpOpenRequest( hConnect,
L"GET",
path,
L"HTTP/1.1",
WINHTTP_NO_REFERER,
WINHTTP_DEFAULT_ACCEPT_TYPES,
0 );

// Exit if WinHttpOpenRequest failed.

Markus

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant