Good Morning! Wow. That is a good explanation. Thanks for the detail.
I will apply this to my app. Thanks...Dan'l ____________________________________ Every day with Jesus is a Great! day and He loves YOU! ----- Original Message ---- From: Rob Kennedy <[email protected]> To: [email protected] Sent: Wednesday, May 20, 2009 9:29:37 PM Subject: Re: [delphi-en] IdHTTP -> 'HTTP/1.1 404 Not Found' GreatDayDan wrote: > In my browser, this: http://www.greatdaydan.com/COJ_Version.txt > returns the contents of the file. In my app, I get the error message. > > This: http://www.greatdaydan.com/COJ_Version.txt gets the ERROR. > > This: http://www.greatdaydan.com gets the contents of index.html. > > Is there something else I should be doing? The site www.greatdaydan.com isn't really the server that's hosting the files. The files are really somewhere at http://mysite.verizon.net/greatdaydan/ because I guess you're using some sort of hosting service from Verizon that doesn't include actual domain hosting. You just have domain redirection. The hosting service is doing something screwy. It's responding to the request with a 404, but the *content* of page it returns is a frameset that contains the file's *real* address. An excerpt from the response: <frameset frameborder="0" framespacing="0" border="0" rows="100%,*"> <frame name="MYTOPFRAME" src="http://mysite.verizon.net/greatdaydan/COJ_Version.txt" noresize> When a server responds with 404, Indy believes it. You say you can get the contents of index.html, but are you sure? I think you'll find that you don't get the contents of *your* index.html. Rather, you get the Verizon frameset index page, the same as you get for COJ_Version.txt, but with the frame source changed. I see three options for you: - Change your program to go to the right address, mysite.verizon.com instead of greatdaydan.com. - Parse the contents of the error page to find the real address and then issue another request. - Switch to a better hosting service. To help me figure out what was going on here, I used Firebug, an add-on for Firefox. I enabled network monitoring for your domain name, visited the problem URL, and on the Net tab, noticed there were two requests, the first of which returned 404. The "header" and "response" sub-tabs revealed what I described above. -- Rob ------------------------------------ ----------------------------------------------------- Home page: http://groups.yahoo.com/group/delphi-en/ To unsubscribe: [email protected]! Groups Links

