Re: lingo-l getting list of files in remote folder...

2002-08-22 Thread Cole Tierney

This sounds familiar to me. I wonder if the server is switching on 
netlingo's http headers. I remmber somebody having this trouble with 
amazon.com.


At 3:09 AM +0200 8/22/02, Andreas Gaunitz P11 wrote:
Yes, for some reason I have trouble getting it to work too - now! I 
must open the filemaker port in the firewall to be able to backtrace 
my code.  Can't do it from here or at this time (03.10 am).


-A.

At 1:13 AM +0200 8/22/02, you wrote:
But getnettext returns an empty string, rather than the server's CREATED
html for the file listings.

It's no big deal, but odd.


Yes it's odd. It's not helping you, but it works for me with a Mac server.

Did you try using 
getNetText(ftp://user:[EMAIL PROTECTED]/folder) instead of http? 
It has been working better for me.


-A.

data point: http:  ftp: both fail for me too

URL = htp://kettles.best.vwh.net/demos/

-Buzz


-- 
Cole
[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]



Re: lingo-l getting list of files in remote folder...

2002-08-21 Thread Buzz Kettles

At 12:57 PM -0400 8/21/02, you wrote:
I realize that the server permissions must be set as such, rather than a
404...

but if I do a request on a folder/index.html that doesn't exist, will I get
a list of the folders, ie a browser?

not that I know of -
getNetText returns a file.
if it's not there, you get 

I think each browser does something special to get back a fabricated html page

hth

-Buzz

  Is there any other way of getting
remote files in a browser, ie getNthfilename(http)?

[To remove yourself from this list, or to change to digest mode, go 
to http://www.penworks.com/lingo-l.cgi  To post messages to the 
list, email [EMAIL PROTECTED]  (Problems, email 
[EMAIL PROTECTED]). Lingo-L is for learning and helping with 
programming Lingo.  Thanks!]

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]



Re: lingo-l getting list of files in remote folder...

2002-08-21 Thread g r i m m w e r k s

On 8/21/02 3:10 PM, Buzz Kettles [EMAIL PROTECTED] decreed thusly:

 
 I think each browser does something special to get back a fabricated html page
 
 hth

Found a way to get the convoluted html using the old xtranet (Terry had a
browser example from gmatter as well).

But I think I'll just use my directFTP after all.

I would've expected the index.html text that the browser puts out when
requesting a directories contents that are allowed to be seen. you know,
like a browser does.

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]



Re: lingo-l getting list of files in remote folder...

2002-08-21 Thread Andreas Gaunitz P11

Grimmwerks,

That's easy, but you need to configure the www server like this: If 
no index.html exists in a folder, then show directory contents 
instead. This is just one check box on a Mac server, I don't know 
about windows.

Once you've done that you can just do a 
getNetText(www.something.com/folder) to get a html page with the file 
listing embedded. Then you just need to strip away the graphics, 
html code etc

I've noticed some shakiness when doing this tho... A lot of times it 
only works the 2nd time i issue the getNetText(). Don't have a clue 
to why.

So I switched over to using the Shockwave Multiuser Server instead, 
which is a tad more capable. If you want to do it using SMUS, have a 
look at the server side scripting command called getAt() which is not 
what you'd expect it to be.

-A.


I realize that the server permissions must be set as such, rather than a
404...

but if I do a request on a folder/index.html that doesn't exist, will I get
a list of the folders, ie a browser? Is there any other way of getting
remote files in a browser, ie getNthfilename(http)?

[To remove yourself from this list, or to change to digest mode, go 
to http://www.penworks.com/lingo-l.cgi  To post messages to the 
list, email [EMAIL PROTECTED]  (Problems, email 
[EMAIL PROTECTED]). Lingo-L is for learning and helping with 
programming Lingo.  Thanks!]

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]



Re: lingo-l getting list of files in remote folder...

2002-08-21 Thread Andreas Gaunitz P11

  I think each browser does something special to get back a 
fabricated html page

  hth

Found a way to get the convoluted html using the old xtranet (Terry had a
browser example from gmatter as well).

But I think I'll just use my directFTP after all.

I would've expected the index.html text that the browser puts out when
requesting a directories contents that are allowed to be seen. you know,
like a browser does.


I'm not quite sure I understand. It's not the browser that produces 
the html, it's the www server. You can design the page template to be 
output yourself, if you like, as long as you have access to the 
server.

-A.


[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]



Re: lingo-l getting list of files in remote folder...

2002-08-21 Thread g r i m m w e r k s

On 8/21/02 3:30 PM, Andreas Gaunitz P11 [EMAIL PROTECTED] decreed
thusly:

 That's easy, but you need to configure the www server like this: If
 no index.html exists in a folder, then show directory contents
 instead. This is just one check box on a Mac server, I don't know
 about windows.


Actually the server IS setup like that, but the nettextresult still shows a
blank.

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]



Re: lingo-l getting list of files in remote folder...

2002-08-21 Thread g r i m m w e r k s

On 8/21/02 3:34 PM, Andreas Gaunitz P11 [EMAIL PROTECTED] decreed
thusly:

 I'm not quite sure I understand. It's not the browser that produces
 the html, it's the www server. You can design the page template to be
 output yourself, if you like, as long as you have access to the
 server.
 
 -A.

No, I understand -- ie the server being configured to show a dir's listings
if there's no index.html page present.

The server is configured as such.

But getnettext returns an empty string, rather than the server's CREATED
html for the file listings.

It's no big deal, but odd.

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]



Re: lingo-l getting list of files in remote folder...

2002-08-21 Thread Daniel Plaenitz




I've noticed some shakiness when doing this tho... A lot of times it only 
works the 2nd time i issue the getNetText(). Don't have a clue to why.

So I switched over to using the Shockwave Multiuser Server instead, which 
is a tad more capable. If you want to do it using SMUS, have a look at the 
server side scripting command called getAt() which is not what you'd 
expect it to be.


In case your web server happens to support php something like this will 
give you the dir listing of any directory you drop it in:

?php

// showdir.php returns a simple directory listing of
// the current directory on a web server

$filepath=$HTTP_SERVER_VARS['SCRIPT_FILENAME'];
$dirpath=substr($filepath,0,strrpos ($filepath, /));
$nl = br\n;

foreach( getArray_readdir($dirpath) as $value) {
 echo $value.$nl;
};

function getArray_readdir ( $path ) {
 $hdl = opendir( $path );
 $dirlist = array();

 while ($res = readdir( $hdl )) {
 $dirlist[$i] = $res;
 $i++;
 }

 closedir($hdl);
 return $dirlist;

}

?


best regards

Daniel Plaenitz
[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]



Re: lingo-l getting list of files in remote folder...

2002-08-21 Thread Andreas Gaunitz P11


But getnettext returns an empty string, rather than the server's CREATED
html for the file listings.

It's no big deal, but odd.


Yes it's odd. It's not helping you, but it works for me with a Mac server.

Did you try using getNetText(ftp://user:[EMAIL PROTECTED]/folder) 
instead of http? It has been working better for me.


-A.


[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]



Re: lingo-l getting list of files in remote folder...

2002-08-21 Thread Buzz Kettles

At 1:13 AM +0200 8/22/02, you wrote:
But getnettext returns an empty string, rather than the server's CREATED
html for the file listings.

It's no big deal, but odd.


Yes it's odd. It's not helping you, but it works for me with a Mac server.

Did you try using getNetText(ftp://user:[EMAIL PROTECTED]/folder) 
instead of http? It has been working better for me.


-A.

data point: http:  ftp: both fail for me too

URL = htp://kettles.best.vwh.net/demos/

-Buzz
[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]



Re: lingo-l getting list of files in remote folder...

2002-08-21 Thread Andreas Gaunitz P11

Yes, for some reason I have trouble getting it to work too - now! I 
must open the filemaker port in the firewall to be able to backtrace 
my code.  Can't do it from here or at this time (03.10 am).


-A.


At 1:13 AM +0200 8/22/02, you wrote:
But getnettext returns an empty string, rather than the server's CREATED
html for the file listings.

It's no big deal, but odd.


Yes it's odd. It's not helping you, but it works for me with a Mac server.

Did you try using getNetText(ftp://user:[EMAIL PROTECTED]/folder) 
instead of http? It has been working better for me.


-A.

data point: http:  ftp: both fail for me too

URL = htp://kettles.best.vwh.net/demos/

-Buzz
[To remove yourself from this list, or to change to digest mode, go 
to http://www.penworks.com/lingo-l.cgi  To post messages to the 
list, email [EMAIL PROTECTED]  (Problems, email 
[EMAIL PROTECTED]). Lingo-L is for learning and helping with 
programming Lingo.  Thanks!]

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]