On Tue, Dec 12, 2000 at 03:56:52PM +0400, Roman Shumikhin wrote: > Спасибо за помощь, про LOcation я знаю, но мне нужно другое: > в теле запроса надо предавать данные, методом POST > > POST http://URL HTTP/1.1 > Content-type: ... > Content-Length: XX > > param1=a¶m2=b и т.д. > > Вот если бы можно было передавать нужный мне заголовок телнету вот так: > $telnet www.company.ru 80 <файл_с_запросом [>ответ сервера] > > Но, к сожалению, telnet не берёт данные со стандартного ввода... :-( Есть пакет, с помощью утилит из которого вы без труда решите Вашу задачу. $ rpm -qi nc Name : nc Relocations: /usr Version : 1.10 Vendor: IPLabs Linux Team Release : ipl10mdk Build Date: Wed Aug 9 02:04:05 2000 Install date: Wed Aug 9 02:05:15 2000 Build Host: LDV.fandra.org Group : Networking/Other Source RPM: nc-1.10-ipl10mdk.src.rpm Size : 127930 License: GPL Packager : Dmitry V. Levin Summary : Reads and writes data across network connections using TCP or UDP. Description : The nc package contains Netcat (the program is actually nc), a simple utility for reading and writing data across network connections, using the TCP or UDP protocols. Netcat is intended to be a reliable back-end tool which can be used directly or easily driven by other programs and scripts. Netcat is also a feature-rich network debugging and exploration tool, since it can create many different connections and has many built-in capabilities. You may want to install the netcat package if you are administering a network and you'd like to use its debugging and network exploration capabilities. Regards, Dmitry +-------------------------------------------------------------------------+ Dmitry V. Levin mailto://ldv@fandra.org Software Engineer PGP pubkey http://www.fandra.org/users/ldv/pgpkeys.html IPLabs Linux Team http://linux.iplabs.ru Fandra Project http://www.fandra.org +-------------------------------------------------------------------------+ UNIX is user friendly. It's just very selective about who its friends are.