# Proxy with login/password not working

**URL:** <https://mapwindow.discourse.group/t/proxy-with-login-password-not-working/1682>\
**Category:** MapWinGIS\
**Created:** [December 14, 2023, 2:36pm UTC](https://mapwindow.discourse.group/t/proxy-with-login-password-not-working/1682 "2023-12-14T14:36:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anthony](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@Anthony](https://mapwindow.discourse.group/u/Anthony)\
**Post date:** [December 14, 2023, 2:36pm UTC](https://mapwindow.discourse.group/t/proxy-with-login-password-not-working/1682/1 "2023-12-14T14:36:38Z")

</div>

Hello everyone,

I have a problem using MapWinGIS with a proxy that has a login/password.

I’ve also tried MapWindow without success… Do you know of any anomaly?

The component works perfectly with a proxy without login/password.

I’ve tried modifying the :

> SetProxyAndAuthentication

without success so far…

My configuration in MapWindow :

![image](https://global.discourse-cdn.com/free1/uploads/mapwindow1/original/1X/e1f972b4bd1d14547345586b277fec6ccc63fde7.png)

My configuration in MapWinGIS :

![image](https://global.discourse-cdn.com/free1/uploads/mapwindow1/original/1X/77a5d867581137e1c7d83719a06a1aee6dd7ee66.png)

Thanks for your help!

---

<div class="post-metadata">

**Author:** ![Anthony](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@Anthony](https://mapwindow.discourse.group/u/Anthony)\
**Post date:** [December 19, 2023, 3:21pm UTC](https://mapwindow.discourse.group/t/proxy-with-login-password-not-working/1682/2 "2023-12-19T15:21:36Z")

</div>

After several days of tests and modifications, I’ve finally got my proxy working with a login/password!  
Now I just have to figure out how to solve the problem with NTLM…

```
/* Does not work with a proxy using a login / password to be replaced by : CURLOPT_PROXYUSERPWD */
//curlCode = curl_easy_setopt(curl, CURLOPT_USERNAME, (LPCTSTR)userName);
//curlCode = curl_easy_setopt(curl, CURLOPT_PASSWORD, (LPCTSTR)password);

std::string proxyCredentials = userName + ":" + password;

curlCode = curl_easy_setopt(curl, CURLOPT_PROXYUSERPWD, proxyCredentials.c_str());

```
