PHP
- 1 ответ
- 0 вопросов
0
Вклад в тег
curl 'https://site.com/' \
-H 'Host: site.com' \
-H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:33.0) Gecko/20100101 Firefox/33.0' \
-H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' \
-H 'Accept-Language: en-US,en;q=0.5' \
-H 'Referer: site.com' \
-H 'Cookie: all required cookies will appear here' \
-H 'Connection: keep-alive'
self.c.setopt(pycurl.HTTPHEADER,
[
'Host: site.com',
'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:33.0) Gecko/20100101 Firefox/33.0',
'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
'Accept-Language: en-US,en;q=0.5',
'Referer: https://site.com',
# 'Cookie: all required cookies will appear here',
'Connection: keep-alive',
'Content-Type: application/x-www-form-urlencoded; charset=UTF-8'])