• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: CFNetwork?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CFNetwork?


  • Subject: Re: CFNetwork?
  • From: Béla Kiss <email@hidden>
  • Date: Thu, 27 Dec 2001 10:29:07 -0800

on 2001.12.27 02.28, Dustin Mierau at email@hidden wrote:

> shouldn't the request look like this:
>
> GET / HTTP/1.1n\n\n
> Accept: text/html\n\n
> User-Agent: Mozilla/4.0\n\n
> Host: www.apple.com\n\n
> Connection: close\n\n
>
> ? I haven't used CFNetwork, but I think you are terminating your lines
> incorrectly, and I don't think there is need for the double \n at the
> end of your request.

According to RFC 2616:

> HTTP/1.1 defines the sequence CR LF as the end-of-line marker for all protocol
> elements except the entity-body (see appendix 19.3 for tolerant applications).
> The end-of-line marker within an entity-body is defined by its associated
> media type, as described in section 3.7.

The CFHTTPMessage routines build the request and the serialized form looks
ok. I just don't understand why it seems to think that there are header
fields missing.

Bila

--
Bila Kiss telno. 604.264.6113
Arborealis Research email. email@hidden
3322 W 36th Avenue
Vancouver, BC, CANADA V6N 2R9


References: 
 >Re: CFNetwork? (From: Dustin Mierau <email@hidden>)

  • Prev by Date: Can I use AGL functions with NSOpenGLContext ?
  • Next by Date: Re: Can I use AGL functions with NSOpenGLContext ?
  • Previous by thread: Re: CFNetwork?
  • Next by thread: Re: CFNetwork?
  • Index(es):
    • Date
    • Thread