Re: How to include weather

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 34517
interpreted = N
texte = on 7/11/2000 2:56 PM, Kenneth Grome at ken@simplewebstores.com wrote:>>> I want to include the file at >>> ftp://weather.noaa.gov/data/summaries/weather/wa.txt >>> >>> the wa.txt in my web site how would I do this? >> >> [TCPConnect] shows an example of grabbing the text from a URL from >> another site. The example shows how to get the home page url /, but >> you can add more to your URL to get a different page. > > Except for one thing -- TCPConnect does not work with ftp url's, and > the url above is an ftp url. So unless there's a web server on this > box that can serve this page via http, TCPConnect is not going to > work for you. > 3.0.7 code that works for this: file called get.inc =========== [Middle StartAfter=
&EndBefore=This%20data] [TCPConnect host=iwin.nws.noaa.gov&port=80] [TCPSend]GET /iwin/[state]/state.html HTTP/1.0[UnURL]%0D%0A%0D%0A[/UnURL][/TCPSend] [/TCPConnect] [/middle] ============ [state] is a variable that is passed in an include call like so [INCLUDE file=get.inc&state=ny]:-) been using this for a while and have it completely wrapped in our own interfacesee http://ArcheryWorld.com/bows/USA/GA.nmpl for exampleOnly problem is though that gov site can be slow ;-) If you wanted to be really cute you could use a writefile to write the file out when someone calls it and then only tcp again if the last write was too long ago.hope this helps. ajm-- Alex J. McCombie (800-724-8973) http://OurClients.com Corporate http://McCombie.com Personal (Alex@McCombie.com) http://ClubGab.com/ <--- Now here's a serious Chat Room! --->------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: How to include weather (Kenneth Grome 2000)
  2. Re: How to include weather (Jeff Logan 2000)
  3. Re: How to include weather (Alex McCombie 2000)
  4. Re: How to include weather (Alex McCombie 2000)
  5. Re: How to include weather (Aaron Lynch 2000)
  6. Re: How to include weather (Alex McCombie 2000)
  7. Re: How to include weather (Charles Kline 2000)
  8. Re: How to include weather (Charles Kline 2000)
  9. Re: How to include weather (Kenneth Grome 2000)
  10. Re: How to include weather (Dale 2000)
  11. Re: How to include weather (Jeff Logan 2000)
  12. Re: How to include weather (Joseph D'Andrea 2000)
  13. Re: How to include weather (Charles Kline 2000)
  14. Re: How to include weather (Kenneth Grome 2000)
  15. Re: How to include weather (Kenneth Grome 2000)
  16. Re: How to include weather (Jeff Logan 2000)
  17. Re: How to include weather (Charles Kline 2000)
  18. Re: How to include weather (Jeff Logan 2000)
  19. Re: How to include weather (Kenneth Grome 2000)
  20. Re: How to include weather (David M. Dantowitz 2000)
  21. Re: How to include weather (WebDNA Support 2000)
  22. How to include weather (Jeff Logan 2000)
on 7/11/2000 2:56 PM, Kenneth Grome at ken@simplewebstores.com wrote:>>> I want to include the file at >>> ftp://weather.noaa.gov/data/summaries/weather/wa.txt >>> >>> the wa.txt in my web site how would I do this? >> >> [tcpconnect] shows an example of grabbing the text from a URL from >> another site. The example shows how to get the home page url /, but >> you can add more to your URL to get a different page. > > Except for one thing -- TCPConnect does not work with ftp url's, and > the url above is an ftp url. So unless there's a web server on this > box that can serve this page via http, TCPConnect is not going to > work for you. > 3.0.7 code that works for this: file called get.inc =========== [Middle StartAfter=
&EndBefore=This%20data] [TCPConnect host=iwin.nws.noaa.gov&port=80] [tcpsend]GET /iwin/[state]/state.html HTTP/1.0[unurl]%0D%0A%0D%0A[/UnURL][/TCPSend] [/TCPConnect] [/middle] ============ [state] is a variable that is passed in an include call like so [INCLUDE file=get.inc&state=ny]:-) been using this for a while and have it completely wrapped in our own interfacesee http://ArcheryWorld.com/bows/USA/GA.nmpl for exampleOnly problem is though that gov site can be slow ;-) If you wanted to be really cute you could use a writefile to write the file out when someone calls it and then only tcp again if the last write was too long ago.hope this helps. ajm-- Alex J. McCombie (800-724-8973) http://OurClients.com Corporate http://McCombie.com Personal (Alex@McCombie.com) http://ClubGab.com/ <--- Now here's a serious Chat Room! --->------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Alex McCombie

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Simple Database close connection (2001) WebCat editing, SiteGuard WAS:SiteAssociative lookup style? (1997) Editing two databases in one form using [replace]? (1998) New Site Announcement (1998) Upgrading old WebCat Database Files (1997) Thanks Grant (1997) RePost: NAT and the CART (1999) REPOST: Large founditems loops (2000) Emailer setup (1997) Bug in v5.1? (2003) MOOOOOO (2000) update on wn searching (1997) test (2001) Password problems with WebCat 4.01 (2000) AAgghh!! Help, please. SSL strikes again. (1997) [WebDNA] FYI: Internet slowly wakes up to PayPal's quiet fee hike (2009) what servers are supported for Typhoon? (1997) Exclamation point (1997) merchant accts. (1997) [WebDNA] 30 Minute Cookies (2016)