What's wrong with this code? Put line 1 of url

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
shawnblc
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 342
Joined: Fri Jun 01, 2012 11:11 pm

What's wrong with this code? Put line 1 of url

Post by shawnblc » Sun Jun 15, 2014 3:44 pm

What's wrong with this code?

Code: Select all

    put line 1 of url "http://domainname.com/practice/up.txt" into tUp
    if tUp contains "0" then close this stack



Happy Father's Day to all of the fathers out there!

Klaus
Posts: 14205
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: What's wrong with this code? Put line 1 of url

Post by Klaus » Sun Jun 15, 2014 3:50 pm

Hi Shawn,
What's wrong with this code?
nothing and works here (with a valid url)!

Are you doing contract work for the NSA or why do you not provide any more details? 8)


Best

Klaus

shawnblc
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 342
Joined: Fri Jun 01, 2012 11:11 pm

Re: What's wrong with this code? Put line 1 of url

Post by shawnblc » Sun Jun 15, 2014 3:58 pm

Klaus wrote:Hi Shawn,
What's wrong with this code?
nothing and works here (with a valid url)!

Are you doing contract work for the NSA or why do you not provide any more details? 8)


Best

Klaus
lol. I gotta good laugh outta that one! Thanks.

Using 6.6.2 build 4012 OSX and it doesn't work here.

I guess I can upload my stack.

Klaus
Posts: 14205
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: What's wrong with this code? Put line 1 of url

Post by Klaus » Sun Jun 15, 2014 4:01 pm

Please try this:
...
put url "http://domainname.com/practice/up.txt" into tFile
ANSWER THE RESULT & CR & tFile
## THE RESULT should be empty on success and tFIle might also give a hint if not successful!
...
and post the results!

Best

Klaus

Post Reply