Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

use of putty

12 views
Skip to first unread message

ghand

unread,
Mar 19, 2012, 6:49:19 PM3/19/12
to

I am on Windows. I would like to telnet-raw to my http server and issue a command,
then issue another. The problem is one option it closes on exit, another option
it stays open but won't let me enter any more.

How can I, within one window, do that?

e.g.

issue a GET, get the response. Then in the same Window, issue another GET.

I don't mind if I have to telnet-raw again, (repeating the last command that
got me in), but i'd like to do it in the same window.

Jacob Nevins

unread,
Mar 20, 2012, 11:37:02 AM3/20/12
to
ghand <gha...@hotmail.com> writes:
>I am on Windows. I would like to telnet-raw to my http server and
>issue a command,

(For the avoidance of doubt: you want to use the "Raw" option in PuTTY
to do that, not "Telnet".
<http://the.earth.li/~sgtatham/putty/0.62/htmldoc/Chapter3.html#using-rawprot>)

>then issue another. The problem is one option it closes on exit,
>another option it stays open but won't let me enter any more.

Presumably because the server closed the connection?

>How can I, within one window, do that?
>
>e.g.
>
>issue a GET, get the response. Then in the same Window, issue another GET.
>
>I don't mind if I have to telnet-raw again, (repeating the last command that
>got me in), but i'd like to do it in the same window.

For HTTP specifically, if you talk HTTP/1.1 _and_ the web server in
question is configured to use persistent connections by default, then
you may just be able to type another command. That is, if you connect
to www.example.com and type:

GET / HTTP/1.1
Host: www.example.com
<blank line>

(omitting the "Connection: close" header), then the server may keep
the connection open and you can type something else after it's
finished its response to the first query. (But it's within its rights
not to, which it would normally signal by putting "Connection: close"
in its first response.)

Otherwise you can re-use the same window for a new TCP connection to
the same host with the same parameters by selecting "Restart Session"
from PuTTY's window menu. (If you enable "System menu appears on
ALT-Space" in PuTTY's options, you can do this from the keyboard,
with ALT-Space then R.)

ghand

unread,
Mar 21, 2012, 9:53:27 PM3/21/12
to
thanks for the correction on terminology and the usage tips/solution.. I see,
that if in full screen mode, it's alt-space,r,<ENTER> rather than just alt-space,r.
but this is a big improvement.


0 new messages