# 标头和 Cookie
Smart AI Proxy 会自动将您的大部分请求标头和 Cookie et Cookie : Crawling API。Cookie. User-Agent 请求中的标头将按原样转发到目标。如果您发送空白 User-Agent,智能 AI 代理将为您旋转。
代理本身使用的某些标头,例如 Host et Proxy-Authorization,予转发。
Cookie 的示例。以下示例中的标头和 Cookie 将由智能 AI代理转发,并在向以下对象发出请求时使用: https://httpbin.org/anything.
Pour HTTP :
# Using Smart AI Proxy with custom headers and cookies
curl \
-H "Accept-Language: en-US,en;q=0.9" \
-H "X-Custom-Header: My-Custom-Value" \
-H "User-Agent: MyCustomBrowser/1.0" \
--cookie "mycookie=myvalue; anothercookie=anothervalue" \
-x "http://[email protected]:8012" \
-k "https://httpbin.org/anything"
Pour HTTPS :
# Using Smart AI Proxy with custom headers and cookies
curl \
-H "Accept-Language: en-US,en;q=0.9" \
-H "X-Custom-Header: My-Custom-Value" \
-H "User-Agent: MyCustomBrowser/1.0" \
--cookie "mycookie=myvalue; anothercookie=anothervalue" \
-x "https://[email protected]:8013" \
-k "https://httpbin.org/anything"