• 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: Wed, 22 Feb 2006 08:43:42 +0000

On 2/22/06, email@hidden <email@hidden> wrote:
> Hi,
>
> It seems OTConnect() is first converting any given domain name to an IP
> address and then making the connection using the IP address.
>
> E.g. connecting to my own website using the OTSimpleDownloadHTTP example I
> get an error message from my provider telling me I shouldn't use the raw
> IP address but the domain name.
>
> What would be the best way to tell OT using the domain name and not to
> attempt any DNS lookups on its own ?!
>

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
This is needed because most providers will be hosting many websites
(with different domain names) off a single server, so all those domain
names map to the same ip address and so the webserver needs to be able
to tell which one you want.

Fred

> Sorry, still stuck with OT since I need to support both, OS 9 and X.
>
> regards,
> Jan
>  _______________________________________________
> 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
>
 _______________________________________________
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: 
 >Make OTConnect() to use domain name instead of IP ? (From: email@hidden)

  • Prev by Date: Make OTConnect() to use domain name instead of IP ?
  • Next by Date: Re: Make OTConnect() to use domain name instead of IP ?
  • Previous by thread: Make OTConnect() to use domain name instead of IP ?
  • Next by thread: Re: Make OTConnect() to use domain name instead of IP ?
  • Index(es):
    • Date
    • Thread