Salut la liste,

On Thu, Jun 09, 2005 at 04:17:07PM +0200, Lol Zimmerli wrote:
> [EMAIL PROTECTED] �crit/wrote:
> > ...
> > Si je fais  un "GET / HTTP/1.0" avec 2 'return' en telnet sur
> > www.edicom.ch 80,
> > j'ai un "400 Bad Request".
> Pas moi, pas maintenant. Je vois bien un document html.

Moi non plus:
$ echo $'GET / HTTP/1.0\n' | nc www.edicom.ch 80
HTTP/1.1 200 OK
Date: Thu, 09 Jun 2005 22:27:07 GMT
Server: Apache/1.3.26 (Unix)
Cache-Control: max-age=600
Expires: Thu, 09 Jun 2005 22:37:07 GMT
Content-Type: text/html
X-Cache: MISS from www.edicom.ch
Connection: close

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
...
<title>Edicom - Le m�dia interactif de Suisse romande</title>
...

La requ�te est simple:
$ echo $'GET / HTTP/1.0\n'
La commande echo ajoutant automatiquement un saut de ligne, un seul suffit.
De plus, m�me en *ajoutant* des ``returns'':
$ echo $'GET / HTTP/1.0\r\n\r' | nc www.edicom.ch 80 | less
donne le m�me r�sultat.   

Bonne nuit.

-- 
 F�lix Hauri  -  <[EMAIL PROTECTED]>  -  http://www.f-hauri.ch

_______________________________________________
gull mailing list
[email protected]
http://lists.alphanet.ch/mailman/listinfo/gull

Répondre à