Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Read

From: dockimbel:free at: 18-Nov-2000 14:46

Just try : http-port: open tcp://www.mtnsms.com:80 insert http-port rejoin [ "GET / HTTP/1.0" newline "Host: www.mtnsms.com" newline newline ] while [data: copy http-port][prin data] By adding a Host header, the web server can determine which virtual host you're asking for. Rebol 'read function always send one. DK.
>> trace/net on >> read http://www.mtnsms.com
URL Parse: none none www.mtnsms.com none none none Net-log: ["Opening tcp for" HTTP] connecting to: www.mtnsms.com Net-log: {GET / HTTP/1.0 Accept: */* Connection: close User-Agent: REBOL 0.10.38.3.1 Host: www.mtnsms.com } Net-log: "HTTP/1.1 200 OK" Net-log: ["low level read of " 7997 "bytes"] Net-log: ["low level read of " 934 "bytes"] == { <html> <head> <title>mtnsms.com</title> <meta name="description" content="Send short text messages to mobile Graham Chiu wrote :