Re: TCPConnect strange behaviour

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 57050
interpreted = N
texte = I'm looking at it now... > From: Alain Russell > Reply-To: (WebDNA Talk) > Date: Wed, 24 Mar 2004 16:37:35 +1200 > To: (WebDNA Talk) > Subject: Re: TCPConnect strange behaviour > > mate .. you should, > When I was playing with 5 parsing an XML file went from about 100 lines > in 4.5 to about 6 lines total .. > Got to say - it rocked the party. > > Alain > > On 24/03/2004, at 4:28 PM, Tim Robinson wrote: > >> We've got 6, and haven't even looked at it the XML stuff... ;-) >> >> >>> From: Alain Russell >>> Reply-To: (WebDNA Talk) >>> Date: Wed, 24 Mar 2004 16:25:36 +1200 >>> To: (WebDNA Talk) >>> Subject: Re: TCPConnect strange behaviour >>> >>> don't you guys have v5 ? >>> Why not use the native XML stuff .. it's heaps easier .. >>> >>> >>> >>> On 24/03/2004, at 4:19 PM, Tim Robinson wrote: >>> >>>> Looks like it's fixed. I changed "HTTP/1.1" to "HTTP/1.0" and now >>>> it's >>>> working perfectly AND one connection is taking 1.5 seconds as opposed >>>> to >>>> 10.5 seconds. Why? I don't know. Anyone know? >>>> >>>> Tim >>>> >>>>> From: Tim Robinson >>>>> Reply-To: (WebDNA Talk) >>>>> Date: Wed, 24 Mar 2004 15:01:11 +1100 >>>>> To: (WebDNA Talk) >>>>> Subject: TCPConnect strange behaviour >>>>> >>>>> Hi everyone, >>>>> >>>>> When I access an XML page via browser, everything is fine. When I do >>>>> the >>>>> same via [TCPConnect] everything is ALMOST fine. >>>>> >>>>> In only one area of the XML, it randomly adds in a couple of extra >>>>> carriage >>>>> returns with a few odd characters in the middle. No problem. I used >>>>> grep to >>>>> get rid of them. Trouble is, now these random acts of carriage >>>>> return >>>>> are >>>>> embedding themselves in the actual XML tags, which is what [middle] >>>>> uses to >>>>> get the data I need. >>>>> >>>>> Has anyone ever experience this kind of behaviour? >>>>> >>>>> Here's URL: >>>>> http://xoap.weather.com/weather/local/ASXX0057?cc=*&dayf=2 >>>>> >>>>> Here's WebDNA: >>>>> >>>>> [text]crlf=[unurl]%0D%0A[/unurl][/text] >>>>> >>>>> [tcpconnect host=xoap.weather.com&port=80] >>>>> [tcpsend skipheader=T]GET /weather/local/ASXX0057?cc=*&dayf=2 >>>>> HTTP/1.1[crlf][!] >>>>> [/!]Host: xoap.weather.com[crlf][!] >>>>> [/!][crlf][!] >>>>> [/!][/tcpsend] >>>>> [/tcpconnect] >>>>> >>>>> Here's the offending output: >>>>> >>>>> 28 >>>>> Mostly Cloudy>>>> 1f0 >>>>> t> >>>>> >>>>> Should be: >>>>> >>>>> 28 >>>>> Mostly Cloudy >>>>> >>>>> NOTE: the problem is that it occurs in different places with >>>>> different >>>>> characters... >>>>> >>>>> Any help/comments appreciated. >>>>> >>>>> Regards, >>>>> Tim >>>>> -- >>>>> Tim Robinson >>>>> idfk web developments >>>>> 114a/40 yeo street neutral bay 2089 australia >>>>> t +612 9908 2134 >>>>> f +612 9908 4837 >>>>> >>>>> >>>>> ------------------------------------------------------------- >>>>> 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://webdna.smithmicro.com/ >>>> >>>> >>>> ------------------------------------------------------------- >>>> 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://webdna.smithmicro.com/ >>>> >>> >>> >>> >>> ------------------------------------------------------------- >>> 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://webdna.smithmicro.com/ >> >> >> ------------------------------------------------------------- >> 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://webdna.smithmicro.com/ >> > > > > ------------------------------------------------------------- > 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://webdna.smithmicro.com/ ------------------------------------------------------------- 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://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: TCPConnect strange behaviour ( Tim Robinson 2004)
  2. Re: TCPConnect strange behaviour ( Alain Russell 2004)
  3. Re: TCPConnect strange behaviour ( Tim Robinson 2004)
  4. Re: TCPConnect strange behaviour ( Alain Russell 2004)
  5. Re: TCPConnect strange behaviour ( Tim Robinson 2004)
  6. TCPConnect strange behaviour ( Tim Robinson 2004)
I'm looking at it now... > From: Alain Russell > Reply-To: (WebDNA Talk) > Date: Wed, 24 Mar 2004 16:37:35 +1200 > To: (WebDNA Talk) > Subject: Re: TCPConnect strange behaviour > > mate .. you should, > When I was playing with 5 parsing an XML file went from about 100 lines > in 4.5 to about 6 lines total .. > Got to say - it rocked the party. > > Alain > > On 24/03/2004, at 4:28 PM, Tim Robinson wrote: > >> We've got 6, and haven't even looked at it the XML stuff... ;-) >> >> >>> From: Alain Russell >>> Reply-To: (WebDNA Talk) >>> Date: Wed, 24 Mar 2004 16:25:36 +1200 >>> To: (WebDNA Talk) >>> Subject: Re: TCPConnect strange behaviour >>> >>> don't you guys have v5 ? >>> Why not use the native XML stuff .. it's heaps easier .. >>> >>> >>> >>> On 24/03/2004, at 4:19 PM, Tim Robinson wrote: >>> >>>> Looks like it's fixed. I changed "HTTP/1.1" to "HTTP/1.0" and now >>>> it's >>>> working perfectly AND one connection is taking 1.5 seconds as opposed >>>> to >>>> 10.5 seconds. Why? I don't know. Anyone know? >>>> >>>> Tim >>>> >>>>> From: Tim Robinson >>>>> Reply-To: (WebDNA Talk) >>>>> Date: Wed, 24 Mar 2004 15:01:11 +1100 >>>>> To: (WebDNA Talk) >>>>> Subject: TCPConnect strange behaviour >>>>> >>>>> Hi everyone, >>>>> >>>>> When I access an XML page via browser, everything is fine. When I do >>>>> the >>>>> same via [tcpconnect] everything is ALMOST fine. >>>>> >>>>> In only one area of the XML, it randomly adds in a couple of extra >>>>> carriage >>>>> returns with a few odd characters in the middle. No problem. I used >>>>> grep to >>>>> get rid of them. Trouble is, now these random acts of carriage >>>>> return >>>>> are >>>>> embedding themselves in the actual XML tags, which is what [middle] >>>>> uses to >>>>> get the data I need. >>>>> >>>>> Has anyone ever experience this kind of behaviour? >>>>> >>>>> Here's URL: >>>>> http://xoap.weather.com/weather/local/ASXX0057?cc=*&dayf=2 >>>>> >>>>> Here's WebDNA: >>>>> >>>>> [text]crlf=[unurl]%0D%0A[/unurl][/text] >>>>> >>>>> [tcpconnect host=xoap.weather.com&port=80] >>>>> [tcpsend skipheader=T]GET /weather/local/ASXX0057?cc=*&dayf=2 >>>>> HTTP/1.1[crlf][!] >>>>> [/!]Host: xoap.weather.com[crlf][!] >>>>> [/!][crlf][!] >>>>> [/!][/tcpsend] >>>>> [/tcpconnect] >>>>> >>>>> Here's the offending output: >>>>> >>>>> 28 >>>>> Mostly Cloudy>>>> 1f0 >>>>> t> >>>>> >>>>> Should be: >>>>> >>>>> 28 >>>>> Mostly Cloudy >>>>> >>>>> NOTE: the problem is that it occurs in different places with >>>>> different >>>>> characters... >>>>> >>>>> Any help/comments appreciated. >>>>> >>>>> Regards, >>>>> Tim >>>>> -- >>>>> Tim Robinson >>>>> idfk web developments >>>>> 114a/40 yeo street neutral bay 2089 australia >>>>> t +612 9908 2134 >>>>> f +612 9908 4837 >>>>> >>>>> >>>>> ------------------------------------------------------------- >>>>> 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://webdna.smithmicro.com/ >>>> >>>> >>>> ------------------------------------------------------------- >>>> 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://webdna.smithmicro.com/ >>>> >>> >>> >>> >>> ------------------------------------------------------------- >>> 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://webdna.smithmicro.com/ >> >> >> ------------------------------------------------------------- >> 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://webdna.smithmicro.com/ >> > > > > ------------------------------------------------------------- > 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://webdna.smithmicro.com/ ------------------------------------------------------------- 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://webdna.smithmicro.com/ Tim Robinson

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:

Almost a there but..bye bye NetCloak (1997) group searching problem (2002) sort problems....bug or brain fart? (1997) WC2f3 (1997) WebCatalog dying in WebTen Revisited (1998) Maximum characters in header? (1999) Ship via options price (2000) Loop context to replace items (1998) WebCat2 Append problem (B14Macacgi) (1997) A question on sub-categories (1997) Webmerchant 3.08: Help! Error Can't open order file.Ignoring [Orderfile] context (2000) Banners (1997) Extra carriage returns (1999) Caching [include] files ... (1997) Maybe Off Topic -- OS X/UNIX Shell Scripts? (2003) WebCat2 beta 11 - new prefs ... (1997) WebTen and WebCat (1997) PSC recommends what date format yr 2000??? (1997) [searchString] (1997) Disappearing Database (1998)