PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Noms de domaine > comp.protocols.tcp-ip > Simple http question
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.protocols.tcp-ip TCP and IP network protocols.

Simple http question

Réponse
 
LinkBack Outils de la discussion
Vieux 23/03/2006, 15h10   #1
Jean Pion
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Simple http question

Dear readers

Currenly I'm trying to decode a html response.
I know that the headers are separated by a CR LF.
After the headers there is an emty line.
Then the message body starts.
Now my message body appears to begin with a hex number followed by CR LF
I can not find this in the rfc. Could this be the message length?

Please advice,

Tia, Jean.


  Réponse avec citation
Vieux 23/03/2006, 17h12   #2
Phil Frisbie, Jr.
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Simple http question

Jean Pion wrote:

> Dear readers
>
> Currenly I'm trying to decode a html response.
> I know that the headers are separated by a CR LF.
> After the headers there is an emty line.
> Then the message body starts.
> Now my message body appears to begin with a hex number followed by CR LF
> I can not find this in the rfc. Could this be the message length?


Google for 'chunked http transfer encoding' for the details.

--
Phil Frisbie, Jr.
Hawk Software
http://www.hawksoft.com
  Réponse avec citation
Vieux 23/03/2006, 18h38   #3
Michael Wojcik
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Simple http question


In article <6b19e$4422ba19$513a1b62$29466@news.versatel.net >, "Jean Pion" <jean_pion@hotmail.com> writes:
>
> Currenly I'm trying to decode a html response.


You're trying to process an *HTTP* response. It has nothing to do
with HTML, though the content-body may be HTML text.

> I know that the headers are separated by a CR LF.


Not quite. HTTP defines CRLF as the end-of-line marker outside the
content-body, but it provides for header continuation lines (RFC 2616
2.2), so CRLF does not always indicate the end of a header field
value.

> After the headers there is an emty line.
> Then the message body starts.


Specifically, the HTTP header is terminated by CRLF CRLF, where the
first CRLF marks the end of the final header field. If there is a
content-body, it follows immediately after the second CRLF.

> Now my message body appears to begin with a hex number followed by CR LF


That's very likely the "chunked" transfer-coding, which is described
at length in RFC 2616.

> I can not find this in the rfc. Could this be the message length?


No, it's the chunk length. See RFC 2616 3.6.1. Note that all
HTTP/1.1 implementations must support the chunked transfer-coding; if
you're writing your own HTTP user agent for a special purpose it's
often easier to just use HTTP/1.0. (General-purpose user agents
should use HTTP/1.1 and be at least conditionally-compliant.)

--
Michael Wojcik michael.wojcik@microfocus.com

How can I sing with love in my bosom?
Unclean, immature and unseasonable salmon. -- Basil Bunting
  Réponse avec citation
Vieux 24/03/2006, 12h03   #4
Jean Pion
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Simple http question

"Michael Wojcik" <mwojcik@newsguy.com> schreef in bericht
news:dvuq0301546@news4.newsguy.com...
>
> In article <6b19e$4422ba19$513a1b62$29466@news.versatel.net >, "Jean Pion"
> <jean_pion@hotmail.com> writes:
>>
>> Currenly I'm trying to decode a html response.

>
> You're trying to process an *HTTP* response. It has nothing to do
> with HTML, though the content-body may be HTML text.
>
> --
> Michael Wojcik michael.wojcik@microfocus.com
>
> How can I sing with love in my bosom?
> Unclean, immature and unseasonable salmon. -- Basil Bunting


Thank you very much, both,

that was very full,

Jean.


  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 21h05.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,10536 seconds with 12 queries