Re: Make OTConnect() to use domain name instead of IP ?
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