Libcurl/FTPParser

BlitzMax Forums/Brucey's Modules/Libcurl/FTPParser

Eternal Crisis(Posted 2011) [#1]
I keep getting the following line:

( -99 ) ternal error: code overflow

When using:

Local base:tfilepath = tfilepath.Create()
base.absolutePath = "/public_html/"

Local entries:TList = parser.parseList(base, curl.toString())


It displays the main directory just fine but I can't parse the results. Help please? Thanks :D


Eternal Crisis(Posted 2011) [#2]
I'm sure I could just make my own parser but thought it would of been handy if I could get this working. Any help would be greatly appreciated.


Brucey(Posted 2011) [#3]
I just tried the example (ex_04.bmx) connecting to my webserver ftp, and it worked okay. It even recognised a symbolic link and determined it was a file (rather than a dir).
That server returns :
< 220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------

which I presume is a fairly standard unix-based ftp server.

Are you running in debug mode? Usually something as big as a "code overflow" error would break the debug at a useful place...


Eternal Crisis(Posted 2011) [#4]
No, I'm not running in debug mode. I don't know why it's giving me this error, but once I remove:

Local entries:TList = parser.parseList(base, curl.toString())

It doesn't show the error. I get the directory listing and everything once I comment that line out. I absolutely have no idea what's going on.

Earlier and now I used ex_04.bmx to get started on everything.

I get this output once I comment out the entries TList:

drwxr-x--- 4 eternalc 99 4096 Feb 15 18:22 .
drwx--x--x 13 eternalc eternalc 4096 Feb 16 19:35 ..
-rw-r--r-- 1 eternalc eternalc 0 Feb 15 18:22 .htaccess
drwxr-xr-x 2 eternalc eternalc 4096 Jan 31 18:28 cgi-bin
-rw------- 1 eternalc eternalc 995328 Feb 15 18:04 core.841
drwxr-xr-x 7 eternalc eternalc 4096 Feb 15 18:03 svn
-rw-r--r-- 1 eternalc eternalc 72 Feb 15 18:03 test.php

Maybe the module didn't build correctly? I absolutely have no idea, lol.