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

[REBOL] Re: Questions

From: hallvard:ystad:helpinhand at: 2-May-2003 11:13

Dixit [David_A_Brown--vanguard--com] (22.37 01.05.2003):
>1) I tried to used the e-mail demo. In user setup I put in our mailserver >name. I am able to ping it from the windows command line. >I get the following > "Error sending e-mail. Check fields and check your network setup." >Any ideas?
No, I'm afraid not. I have a similar problem with my very little Kasper program (http://folk.uio.no/hallvary/rebol/kasper.r). It seems to always tell me I'm offline, no matter how online I am.
>2) When I search a web page for a string and if successful write it to a >.html file some links do not work because they are relative. >I tried to do the following but did not know how to handle quotes within a >string. > page: read http://www.xyz.com/ > htmlbase: "<BASE href="http://www.xyz/com/">" > if find page "jobs" [write %result.html [htmlbase + page]]
Try this: htmlbase: {<BASE href="http://www.xyz/com/">} There are two ways to mark strings in rebol: "like this" and {like this}.
>3) What would be the best way to not just search for a word on a website >but to search to see if the word is contained on any web pages that are >directly linked to from the original page?
You would have to download those other web pages as well, and perform a search in them too. Or did you mean something more specific?
>4) What is the best way to search for two strings that are both contained >in the same header and then identity the link from the header?
Not sure I understand what you mean. Can you explain or give an example? ~H