That's just what I wanted. Thanks Marcel!! Malcolm
Marcel Kilgus wrote: >Malcolm Lear wrote: > > >>Is it possible to download a file from a web address using the >>TCP/UDP sockets and an Sbasic program? I've been looking for >>documentation and programming examples with no success. >> >> > >Yes, it is possible. The protocol you have to speak is HTTP and >described here http://www.ietf.org/rfc/rfc2616.txt > >Here's a very very basic program that requests the main page from the >QL-Today web site: > >100 OPEN_IN#3,"tcp_www.qltoday.com:80" >110 PRINT#3,"GET / HTTP/1.1" >120 PRINT#3,"User-Agent: QPC browser" >130 PRINT#3,"Accept: */*" >140 PRINT#3,"host: qltoday.com" >150 PRINT#3 >160 REPeat >170 INPUT#3,a$:PRINT a$ >180 END REPeat > >Marcel > >_______________________________________________ >QL-Users Mailing List >http://www.q-v-d.demon.co.uk/smsqe.htm > > > _______________________________________________ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm