• 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: Make OTConnect() to use domain name instead of IP ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Make OTConnect() to use domain name instead of IP ?


  • Subject: Re: Make OTConnect() to use domain name instead of IP ?
  • From: "Frederick Cheung" <email@hidden>
  • Date: Thu, 23 Feb 2006 08:48:07 +0000

On 2/23/06, email@hidden <email@hidden> wrote:
> > OTConnect has to do a dns lookup or else it wouldn't know what to
> > connect to. What you provider probably means is that you need to
> > include a Host header. The format of this header is dead simple, if
> > your webserver is www.example.com then your header should be
> > Host: www.example.com
>
> Thanks for the tip - GET requests work fine after adding the "host:.."
> line
> to the HTTP header.
>
> Probably someone at apple should update the OTSimpleDownloadHTTP example
> to use a valid GET request working with all webservers?
>

It's valid HTTP/1.0 (which is all it claims to be), it's only HTTP/1.1
that requires the Host: header. You could file a bug against the
sample code, although OT being as dead as a dodo I wouldn't get your
hopes up.

Fred
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: Make OTConnect() to use domain name instead of IP ? (From: email@hidden)

  • Prev by Date: Re: Make OTConnect() to use domain name instead of IP ?
  • Next by Date: Determinining which IF will get the traffic to arbitrary remote address
  • Previous by thread: Re: Make OTConnect() to use domain name instead of IP ?
  • Next by thread: Determinining which IF will get the traffic to arbitrary remote address
  • Index(es):
    • Date
    • Thread