POST via telnet?

POST via telnet?

Post by Stef » Thu, 29 Jan 1998 04:00:00



When I do the following:

telnet host 80

POST /cgi-bin/script.pl HTTP/1.0
User-Agent: <my browser>
Accept: text/html, text/plain, */*
Host: host
Content-type: application/x-www-form-urlencoded
Content-length: <correct length>

<post data>

I get the following answer:

HTTP/1.1 200 OK
Server: <server type>
Date: <date>
Content-type: text/html

Cannot accept request from Connection closed by foreign host.

But doing it via the page where I extracted the parameter it works.
What do I do wrong?

Stef
--
WebMaster D-CHEM
Unix System-administration, SOS-ETH
ETH Zurich

 
 
 

1. posting multiple posts via telnet

i have a script that is going to generate a few posts that i want
posted automaticly.

all the posts reside in one dir
the names of the files are identical to the subjects of the posts
the following headers are already in the files

Newsgroups: alt.test
From: Faux_Pseudo_bot (Faux_Pseudo)
Subject: subject here ignore

Followup-To:
Keywords:
Summary:
X-No-archive: yes

so something along these lines should work
while read line ; do
      cat "$line" | telnet server 119
done < $FILE_WITH_LIST_OF_POSTS

what needs to be changed for this to work?
do i need to find some way to generate a message ID?
what is the proper syntex for telnet in this type of while loop?

This will not be used for spaming.  I promis.
it will be used to post on topic posts like the ones in this group for
the top 10 posters ans subjects.

--

GUI's are for slackers.  ibpconf.sh 6.1 on freshmeat.net  
The easiest way to customize the command line.  By Faux_Pseudo

It's a damn poor mind that can only think of one way to spell a word.
        - Andrew Jackson

2. Mail Handling

3. Can't login via xdm, but can via telnet/console

4. Find out what format a disk has

5. Posting via shell script

6. help with env variables please!

7. VIA KT133A crash *post* 2.4.3-ac6

8. Win95-->ppp-->Linux

9. Posting with nn-6.4.18 via nntp

10. HOW TO POST VIA E-MAIL?

11. posting via tin

12. Posting via e-mail with INN possible?

13. CERT post checks via PGP