LINUX.ORG.RU

Нужен браузер-полуфабрикат для программного серфинга


0

0

Сушествует ли по linux/solaris такой браузер-полуфабрикат чтобы:
а) тело запроса
б) хост:порт
в) HTTP-метод
я ему передавал самостоятельно и при етом он *сам* обрабатывал приходяшие куки и отдавал серверу обратно. Вот пример сессии:

+ brwsr GET /index.html HTTP/1.1
+ cat binaryfile | brwsr POST /login.php HTTP/1.1

вобшем-то можно исползоват телнет, но вот куки парсить неохота


посмотри curl. Правда тело запроса ты ему вряд ли задашь. Но он умеет делать GET и POST, и парсить куки.

dilmah ★★★★★
()
Ответ на: комментарий от dilmah

Не нужно смотреть никакие исходники, есть стандартные комманды GET и POST

winner@libretto:~> GET
Usage: GET [-options] <url>...
-m <method> use method for the request (default is 'GET')
-f make request even if GET believes method is illegal
-b <base> Use the specified URL as base
-t <timeout> Set timeout value
-i <time> Set the If-Modified-Since header on the request
-c <conttype> use this content-type for POST, PUT, CHECKIN
-a Use text mode for content I/O
-p <proxyurl> use this as a proxy
-P don't load proxy settings from environment
-H <header> send this HTTP header (you can specify several)

-u Display method and URL before any response
-U Display request headers (implies -u)
-s Display response status code
-S Display response status chain
-e Display response headers
-d Do not display content
-o <format> Process HTML content in various ways

-v Show program version
-h Print this message

-x Extra debugging output
winner@libretto:~> POST
Usage: POST [-options] <url>...
-m <method> use method for the request (default is 'POST')
-f make request even if POST believes method is illegal
-b <base> Use the specified URL as base
-t <timeout> Set timeout value
-i <time> Set the If-Modified-Since header on the request
-c <conttype> use this content-type for POST, PUT, CHECKIN
-a Use text mode for content I/O
-p <proxyurl> use this as a proxy
-P don't load proxy settings from environment
-H <header> send this HTTP header (you can specify several)

-u Display method and URL before any response
-U Display request headers (implies -u)
-s Display response status code
-S Display response status chain
-e Display response headers
-d Do not display content
-o <format> Process HTML content in various ways

-v Show program version
-h Print this message

-x Extra debugging output
winner@libretto:~>

anonymous
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.