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