Re: tcpread help

2010-03-16 Thread Aleksey Tsalolikhin
I meant to say, out of one of Mark's Cfengine 2 documents. On Tue, Mar 16, 2010 at 7:06 PM, Aleksey Tsalolikhin wrote: > Hi, Deb.  You are most welcome.  I copied it out of one of Mark's > Cfengine2, I imagine.  So thanks to Mark! > > Truly, > -at > > 2010/3/16 Deb Heller-Evans : >> Elegant! Than

Re: tcpread help

2010-03-16 Thread Aleksey Tsalolikhin
Hi, Deb. You are most welcome. I copied it out of one of Mark's Cfengine2, I imagine. So thanks to Mark! Truly, -at 2010/3/16 Deb Heller-Evans : > Elegant! Thanks for sharing! > > > Kind Regards, > deb ツ > > Deb Heller-Evans                1 Cyclotron Road > Computer Systems Engineer       Ber

Re: tcpread help

2010-03-16 Thread Deb Heller-Evans
Elegant! Thanks for sharing! Kind Regards, deb ツ Deb Heller-Evans1 Cyclotron Road Computer Systems Engineer Berkeley, CA 94720 ESnet http://www.es.net/ Desk: 510/495-2243 On Mon, 15 Mar 2010 14:26:24 -0700, Aleksey Tsalolikhin wrote: > Dear Neil, > > I ran into

Re: tcpread help

2010-03-15 Thread Aleksey Tsalolikhin
Dear Neil, I ran into this a couple of days ago. The HTTP protocol requires a blank line at the end of the request. Here is an example using Cfengine 2 syntax: ReadTCP(www.google.com,80,"GET /cfengine_probe HTTP/1.0${n}${n}",1024) Best, -at On Sat, Mar 13, 2010 at 12:25 PM, Mark Burg

Re: tcpread help

2010-03-13 Thread Mark Burgess
You need to read about the HTTP protocol. Your short GET string is not a valid protocol statement. Neil Watson wrote: > On Sat, Mar 13, 2010 at 06:42:07PM +0100, Mark Burgess wrote: > >> See the example in the cfengine source unit_readtcp.cf -- the problem >> is that you have not completed the

Re: tcpread help

2010-03-13 Thread Neil Watson
On Sat, Mar 13, 2010 at 06:42:07PM +0100, Mark Burgess wrote: >See the example in the cfengine source unit_readtcp.cf -- the problem >is that you have not completed the protocol properly. This is the same as what is in the reference guide. The long GET string is not explained. Care to explain?

Re: tcpread help

2010-03-13 Thread Mark Burgess
See the example in the cfengine source unit_readtcp.cf -- the problem is that you have not completed the protocol properly. Neil Watson wrote: > I'm trying to test connectivity to a web server using tcpread > vars: > > "google" string => readtcp( > "www.google.ca", > "80", > "GE

tcpread help

2010-03-13 Thread Neil Watson
I'm trying to test connectivity to a web server using tcpread vars: "google" string => readtcp( "www.google.ca", "80", "GET /index.html", "20"); If I simulate this with netcat I get the results I would expect. nc www.google.ca 80 GET /index.html This returns a page. However,