|
|
|
@ -11,7 +11,11 @@ |
|
|
|
|
#include <windows.h> |
|
|
|
|
#include <winhttp.h> |
|
|
|
|
|
|
|
|
|
#ifdef QT_NETWORK_LIB |
|
|
|
|
#include <QtCore/QDebug> // debug |
|
|
|
|
#else |
|
|
|
|
#include <iostream> // debug |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
namespace proxy { |
|
|
|
|
|
|
|
|
@ -50,7 +54,11 @@ namespace proxy { |
|
|
|
|
throw exc::error(); |
|
|
|
|
|
|
|
|
|
std::wstring list(proxyInfo.lpszProxy); |
|
|
|
|
#ifdef QT_NETWORK_LIB |
|
|
|
|
qDebug()<<"LIST=\""<<proxyInfo.lpszProxy<<"\""; |
|
|
|
|
#else |
|
|
|
|
std::wcout<<"LIST=\""<<list<<"\""<<std::endl; |
|
|
|
|
#endif |
|
|
|
|
for (std::wstring::size_type oldpos(0), pos(0); |
|
|
|
|
(pos=list.find(L";", oldpos))!=std::wstring::npos; |
|
|
|
|
oldpos=++pos) { |
|
|
|
|