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 > POP3 Question - How do I know if it's multi-line response?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.protocols.tcp-ip TCP and IP network protocols.

POP3 Question - How do I know if it's multi-line response?

Réponse
 
LinkBack Outils de la discussion
Vieux 06/05/2007, 20h25   #1
MichaelDMcDonnell@yahoo.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut POP3 Question - How do I know if it's multi-line response?

If we receive a response that ends with a CRLF pair, how do we know
whether or not more lines follow? In other words, this could be a
multi-line response, but our first recv function call only returned
the first line. So how do we know whether or not we should keep
looking for more response lines?

Obviously I'm missing something here; any would be greatly
appreciated.

Thanks,
M. McDonnell

  Réponse avec citation
Vieux 06/05/2007, 21h07   #2
Mark Crispin
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: POP3 Question - How do I know if it's multi-line response?

On Sun, 6 May 2007, MichaelDMcDonnell@yahoo.com wrote:
> If we receive a response that ends with a CRLF pair, how do we know
> whether or not more lines follow? In other words, this could be a
> multi-line response, but our first recv function call only returned
> the first line. So how do we know whether or not we should keep
> looking for more response lines?


ftp://ftp.rfc-editor.org/in-notes/rfc1939.txt

The answer to your question is on page 3.

> Obviously I'm missing something here; any would be greatly
> appreciated.


What you are missing is that you should read the specification, in this
case RFC 1939, instead of making guesses from empirical testing (or asking
people questions in newsgroups).

Nobody should even think of implementing software for a communications
protocol without reading the specification for that protocol.

-- Mark --

http://panda.com/mrc
Democracy is two wolves and a sheep deciding what to eat for lunch.
Liberty is a well-armed sheep contesting the vote.
  Réponse avec citation
Vieux 06/05/2007, 21h18   #3
MichaelDMcDonnell@yahoo.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: POP3 Question - How do I know if it's multi-line response?

On May 6, 1:07 pm, Mark Crispin <m...@CAC.Washington.EDU> wrote:
> On Sun, 6 May 2007, MichaelDMcDonn...@yahoo.com wrote:
> > If we receive a response that ends with a CRLF pair, how do we know
> > whether or not more lines follow? In other words, this could be a
> > multi-line response, but our first recv function call only returned
> > the first line. So how do we know whether or not we should keep
> > looking for more response lines?

>
> ftp://ftp.rfc-editor.org/in-notes/rfc1939.txt
>
> The answer to your question is on page 3.
>
> > Obviously I'm missing something here; any would be greatly
> > appreciated.

>
> What you are missing is that you should read the specification, in this
> case RFC 1939, instead of making guesses from empirical testing (or asking
> people questions in newsgroups).
>
> Nobody should even think of implementing software for a communications
> protocol without reading the specification for that protocol.
>
> -- Mark --
>
> http://panda.com/mrc
> Democracy is two wolves and a sheep deciding what to eat for lunch.
> Liberty is a well-armed sheep contesting the vote.


Mark,
Yes, I looked at the spec before posting, but didn't see an obvious
answer to my question. I'll look again, but in the meantime if anyone
can give me an answer I'd appreciate it.
Thanks,
MDM

  Réponse avec citation
Vieux 07/05/2007, 08h54   #4
robertwessel2@yahoo.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: POP3 Question - How do I know if it's multi-line response?

On May 6, 3:18 pm, MichaelDMcDonn...@yahoo.com wrote:
> On May 6, 1:07 pm, Mark Crispin <m...@CAC.Washington.EDU> wrote:
>
>
>
>
>
> > On Sun, 6 May 2007, MichaelDMcDonn...@yahoo.com wrote:
> > > If we receive a response that ends with a CRLF pair, how do we know
> > > whether or not more lines follow? In other words, this could be a
> > > multi-line response, but our first recv function call only returned
> > > the first line. So how do we know whether or not we should keep
> > > looking for more response lines?

>
> >ftp://ftp.rfc-editor.org/in-notes/rfc1939.txt

>
> > The answer to your question is on page 3.

>
> > > Obviously I'm missing something here; any would be greatly
> > > appreciated.

>
> > What you are missing is that you should read the specification, in this
> > case RFC 1939, instead of making guesses from empirical testing (or asking
> > people questions in newsgroups).

>
> > Nobody should even think of implementing software for a communications
> > protocol without reading the specification for that protocol.

>
> Yes, I looked at the spec before posting, but didn't see an obvious
> answer to my question. I'll look again, but in the meantime if anyone
> can give me an answer I'd appreciate it.



If the command is defined to have multi-line response, you need to
read the response until you get the cr-lf-period-cr-lf terminator.




  Réponse avec citation
Vieux 08/05/2007, 17h30   #5
Jorgen Grahn
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: POP3 Question - How do I know if it's multi-line response?

On 7 May 2007 00:54:18 -0700, robertwessel2@yahoo.com <robertwessel2@yahoo.com> wrote:
> On May 6, 3:18 pm, MichaelDMcDonn...@yahoo.com wrote:
>> On May 6, 1:07 pm, Mark Crispin <m...@CAC.Washington.EDU> wrote:
>>
>> > On Sun, 6 May 2007, MichaelDMcDonn...@yahoo.com wrote:
>> > > If we receive a response that ends with a CRLF pair, how do we know
>> > > whether or not more lines follow? In other words, this could be a
>> > > multi-line response, but our first recv function call only returned
>> > > the first line. So how do we know whether or not we should keep
>> > > looking for more response lines?

>>
>> >ftp://ftp.rfc-editor.org/in-notes/rfc1939.txt

>>
>> > The answer to your question is on page 3.

>>
>> > > Obviously I'm missing something here; any would be greatly
>> > > appreciated.

>>
>> > What you are missing is that you should read the specification, in this
>> > case RFC 1939, instead of making guesses from empirical testing (or asking
>> > people questions in newsgroups).

>>
>> > Nobody should even think of implementing software for a communications
>> > protocol without reading the specification for that protocol.

>>
>> Yes, I looked at the spec before posting, but didn't see an obvious
>> answer to my question. I'll look again, but in the meantime if anyone
>> can give me an answer I'd appreciate it.

>
>
> If the command is defined to have multi-line response, you need to
> read the response until you get the cr-lf-period-cr-lf terminator.


Which is, of course, what page three of RFC 1939 says, in very clear
language. The original poster needs to learn to read specs more
carefully, because this one was IMHO hard to miss.

/Jorgen

--
// Jorgen Grahn <grahn@ Ph'nglui mglw'nafh Cthulhu
\X/ snipabacken.dyndns.org> R'lyeh wgah'nagl fhtagn!
  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 23h05.


É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,14591 seconds with 13 queries