# 标题和 Cookies

死 Smart AI Proxy 请求标头和 Cookie 会自动生成并自动生成网站。 Crawling API。 Dies ermöglicht Ihnen, benutzerdefinierte Header oder Cookies zu senden, wie Sie es bei ei einer direkten Anfrage tun würden.死 User-Agent 标题 Ihrer Anfrage wird unverändert 和 das Ziel weitergeleitet。温·谢·埃恩·莱伦 User-Agent, 有 Smart AI Proxy wird es für Sie drehen.

Bestimmte 标头,代理服务器本身就已经存在,即 z。 B. Host UND Proxy-Authorization, werden nicht weitergeleitet。

这是在 Beispiel 中,通过 Ihrer Anfrage 发送的 Header 和 Cookie 的定义。 Die Header 和 Cookies im folgenden Beispiel werden weitergeleitet von Smart AI Proxy 并在 Anforderung verwendet 下, https://httpbin.org/anything.

通过 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"

通过 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"