Socket
Socket
Socket
- No tags were found...
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
<strong>Socket</strong> Exceptions■ The example program takes three command-linearguments:■ a host to which it will connect,■ a port number or name on the server,■ a file to request from the server.■ Try it out.■ The program will connect to the server, send a simple HTTPrequest for the given filename, and display the result !Try it out !HTTP/1.1 405 Method Not AllowedAllow: GET, HEAD, OPTIONS, TRACEContent-Type: text/htmlServer: Microsoft-IIS/7.5X-Powered-By: ASP.NETDate: Tue, 18 Sep 2012 06:35:40 GMTConnection: closeContent-Length: 1293