Re: [Plib-users] Network
Brought to you by:
sjbaker
|
From: Jon A. <jan...@on...> - 2002-02-11 14:13:36
|
On Sunday 10 February 2002 11:12 am, Michael Wessels wrote: > It runs well with connecting to 'www.opengl.org' and getting the file > 'index.html'. I changed the programm with the line > > new HTTPClient( "www.flight-dynamic-simulator.de","/index.html" ); > Is your website virtual hosted? If so you might need to specify the entire URI rather than just the file, I.E. new HTTPClient( "www.flight-dynamic-simulator.de","http://www.flight-dynamic-simulator.de/index.html" ); You can trouble shoot text protocols like HTTP, SMTP, or POP really easy with a telnet client. For problems like this, just telnet into port 80 of the server, and issue GET commands manually: $ telnet www.flight-dynamic-simulator.de Trying 212.227.118.102... Connected to www.flight-dynamic-simulator.de. Escape character is '^]'. GET http://www.flight-dynamic-simulator.de/index.html If you are just getting started with networking, I highly recommend starting with a text protocol for communication. All you need to do is telnet to your server, and you can essentially interactively debug it. Anything the server sends will show up in the telnet terminal, and anything you type will get sent back. Jon |