
C++
文章平均质量分 70
edger2heaven
这个作者很懒,什么都没留下…
展开
-
如何在Windows平台下学习Poco自带例程
装好Poco后你会发现Poco自带了很多代表性的例程,通过阅读和调试这些例程可以让我们快速学习和了解Poco库,可是有时你会发现你的VS不能直接编译这些工程,其实Poco自带了一个CMake工具,可以帮你生成对应VS版本的.sln文件,使用方法是首先下载安装CMAKE工具,目前最新版本是3.2.1,下载地址如下:http://www.cmake.org/download/,安装完成后注销,然后登陆原创 2015-04-06 10:27:48 · 662 阅读 · 0 评论 -
WinHTTP错误信息处理
WinHTTP错误信息处理Not all WinHTTP API functions report errors in the same way.Some functions, such as WinHttpSetTimeouts, return a BOOL that indicates failure whenFALSE. If FALSE is returned, cal翻译 2015-05-12 09:52:02 · 2756 阅读 · 0 评论 -
不依赖于Auto-Config文件的代理发现
Discovery Without an Auto-Config FileIf a proxy auto-configuration file has not been deployed on the local network,WinHttpGetProxyForUrl cannot find a proxy server. If WinHttpGetProxyForUrl翻译 2015-05-14 08:04:13 · 706 阅读 · 0 评论 -
WinHTTP AutoProxy 函数
WinHTTP AutoProxy 函数WinHTTP implements the WPAD protocol using the WinHttpGetProxyForUrl function along with two supporting utility functions,WinHttpDetectAutoProxyConfigUrl and WinHttpGet翻译 2015-05-14 08:01:08 · 2276 阅读 · 0 评论 -
在WinHTTP中设置WinINet 代理配置
在WinHTTP中设置WinINet 代理配置Setting Automatic Proxy on WinHTTP 5.1Applications that port from WinINet to WinHTTP may need to use the same autoproxy settings that they can retrieve under WinINet or In翻译 2015-05-14 08:40:03 · 5058 阅读 · 0 评论 -
WinHTTP中的HINTERNET句柄
WinHTTP中的HINTERNET句柄Microsoft Windows HTTP Services (WinHTTP) uses handles to keep track of settings and information required when using the HTTP protocol. Each handle maintains information pertin翻译 2015-05-11 07:46:32 · 2731 阅读 · 0 评论 -
HTTP(s)会话劫持思路与实现
在局域网中,实现ARP劫持和DNS欺骗的方法很多,但如果要实现HTTP层等应用层的劫持就不是那么简单了,原因很简单:因为ARP劫持后实现的是以太网抓包,对于上层协议来说,这些都是碎片的不完整包,而要实现实时包重组是很难的事情,因为HTTP、FTP、SMTP、POP等协议从内容上讲没有百分百的特征。因而要在还原上层协议数据后再实现包操作、网络重放等动作就很难。 如果我们在实现劫持后原创 2015-12-21 17:26:10 · 3805 阅读 · 0 评论 -
程序过UAC方法
假设程序在第一次运行时具有管理员权限。一、暴力方法1 UAC注册表位置HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System ConsentPromptBehaviorAdmin 0EnableLUA 0PromptOnSecureDesktop 02 改完后安全中心会报原创 2014-02-05 11:21:12 · 1044 阅读 · 0 评论 -
POCO 1.7.2 + VS2013 + OPENSSL + MYSQL编译
1、下载poco完全版,解压缩。2、安装openssl,安装mysql connector C(重启重启重启)。3、更改buildwin.cmd路径为openssl和mysql connector c路径,然后调用build_vs120.cmd。发现一个小bug:在编译例子的时候,pagecompiler\samples\httptimeserver目录下少几个文件,解决方法是从poc原创 2016-04-29 10:21:55 · 1612 阅读 · 0 评论 -
WinHTTP如何处理Cookie
Cookie Handling in WinHTTPHTTP session data is passed between the client and server in the cookie header of the request or the response. The server sends cookies to the client in the Set-cookie he翻译 2015-05-12 09:50:51 · 5860 阅读 · 0 评论 -
MFC对话框自动调整(Automatic Dialog Resizing) -- 翻译 Dmitry Kochin
Every GUI developer uses dialogs. Sometimes, dialogs should support resizing to make the user's life easier. To create a resizable dialog, you just need to handle a WM_SIZE message and resize/move chi翻译 2015-04-27 08:36:50 · 1490 阅读 · 0 评论 -
WinHTTP 自动代理支持
To ease the configuration of proxy settings, WinHTTP 5.1 implements the Web Proxy Auto-Discovery (WPAD) protocol, also known as autoproxy.Overview of AutoProxyApplications and components that use翻译 2015-05-14 08:00:15 · 2823 阅读 · 0 评论 -
WinHTTP中的认证问题
WinHTTP中的认证问题Some HTTP servers and proxies require authentication before allowing access to resources on the Internet. The Microsoft Windows HTTP Services (WinHTTP) functions support server and pr翻译 2015-05-11 10:10:43 · 3329 阅读 · 0 评论 -
WinHTTP中的统一资源定位符 (URLs)
WinHTTP中的统一资源定位符 (URLs) A URL is a compact representation of the location and access method for a resource located on the Internet. Each URL consists of a scheme (HTTP, HTTPS, FTP, or Gopher) an翻译 2015-05-11 09:04:43 · 931 阅读 · 0 评论 -
Using WinHTTP as a Side-by-side Assembly
Using WinHTTP as a Side-by-side AssemblyOn Windows Server 2003, WinHTTP is implemented as a side-by-side assembly, and must be linked to as such. Note that this does not apply to Windows Vista and翻译 2015-05-12 09:39:07 · 532 阅读 · 0 评论 -
WinHTTP中的身份认证
WinHTTP中的身份认证Microsoft Windows HTTP Services (WinHTTP) fully support the client side use of the Microsoft Passport authentication protocol. This topic provides an overview of the transactions invo翻译 2015-05-11 14:43:54 · 4022 阅读 · 0 评论 -
在WinHTTP中使用SSL
在WinHTTP中使用SSLMicrosoft Windows HTTP Services (WinHTTP) supports Secure Sockets Layer (SSL) transactions including client certificates. This topic explains concepts involved in an SSL transaction翻译 2015-05-12 07:35:36 · 10497 阅读 · 0 评论 -
WinHTTP 会话概览
WinHTTP 会话概览The Microsoft Windows HTTP Services (WinHTTP) exposes a set of C/C++ functions that enable your application to access HTTP resources on the Web. This topic provides an overview of ho翻译 2015-05-09 08:47:27 · 973 阅读 · 0 评论 -
WinHTTP的AutoProxy常见问题
WinHTTP的AutoProxy常见问题Consider the following important issues when using the WinHTTP autoproxy feature.Only One Proxy Server is Currently SupportedWinHTTP does not currently support proxy confi翻译 2015-05-14 08:03:18 · 5311 阅读 · 0 评论 -
AutoProxy 缓存
AutoProxy 缓存The WinHttpGetProxyForUrl function performs autoproxy lookup on a per-request basis for the specified URL. If multiple proxies are returned, client applications should test each prox翻译 2015-05-14 08:41:32 · 551 阅读 · 0 评论 -
Poco学习笔记
1、Poco库分为基本版,完全版和商业版。 基本版不包括SSL支持和数据库支持,但是一般的功能都具备;完全版包括SSL支持和数据库支持,编译的时候需要安装MySQL Connector C和OpenSSL;商业版其实是http://www.appinf.com/公司在Poco基础上再延伸出来的一个库,包括OSP等许多功能能,而且把需要的头文件都集成到一个目录了。 我们一般原创 2016-05-03 17:35:31 · 1399 阅读 · 0 评论