[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: script problem



| At a telnet prompt can type with session open on the correct port.
| GET /login.html

This should really be

	GET /login.html HTTP/1.0

with a blank line below it. I'd start by actually reading the HTTP spec.

| The web server gets my HTML page.    I am having trouble with automation f a
| script.
| 
| I have tried server methods:
| 1.  telnet server_name 80 <filename         The file contains the GET command.
| (redirection)

Make sure it's spelt correctly. Your example is not.

| 2. cat filename | telnet server_name 80    A simple pipe
| 
| I have looked a several "script" book with not luck...

Try the "nc" command. Maybe telnet is closing both sides of the connection
when it sees EOF from the input.
--
Cameron Simpson, DoD#743        cs zip com au    http://www.zip.com.au/~cs/

Hoping to shave precious seconds off the time it would take me to get
through the checkout process and on my way home, I opted for the express
line ("9 Items Or Less [sic]"  Why nine items?  Where do they come up with
these rules, anyway?  It's the same way at most stores -- always some
oddball number like that, instead of a more understandable multiple of
five.  Like "five.")
	- Geoff Miller, geoffm purplehaze Corp Sun COM



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]