我正在考虑使用低级http客户端库来模拟真实的浏览器。
下面是示例代码:
ExtendedAngularStatic
我可以自定义哪一部分? {-# LANGUAGE OverloadedStrings #-}
import Network.HTTP.Client
main :: IO ()
main = do
let settings = managerSetProxy
(proxyEnvironment Nothing)
defaultManagerSettings
man <- newManager settings
let req = "http://httpbin.org"
-- Note that the following settings will be completely ignored.
{ proxy = Just $ Proxy "localhost" 1234
}
httpLbs req man >>= print
或管理员设置?谁能给我示范一个如何在Chrome请求标头下方进行模拟的示例?
req
顺便说一句:网站仅仅通过修改请求标头就可以访问它就足够了吗?