建立具有优先访问权限的HTTP代理 [英] Building a HTTP proxy with preferential access
本文介绍了建立具有优先访问权限的HTTP代理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在C中建立一个http代理,它在处理来自客户端的请求时优先选择特定类别的站点(如.edu站点)而不是诸如社交网站之类的站点,从而提供优先访问权限.
i want to build an http proxy in C which prefers specific class of sites say .edu sites over sites like social sites while processing requests from clients thus providing preferential access.
how should i incorporate this feature in my proxy!
推荐答案
简单地,对请求页面的URL进行URL解析,并借助查找表,可以已实现
simply,do a url parsing of the url of the request page and by help of a lookup table this can be implemented
这篇关于建立具有优先访问权限的HTTP代理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文