OK, I admit it, I'm a complete newby when it comes to socket 
programming. I am baffled by the mixed results that I get when using 
the new libURL, especially for FTP.

I can follow the "put url 'binfle:/....' into url 'ftp://..."; part. 
When I implement it, I get partially successful results. Sometimes it 
works, and sometimes it doesn't. That's what is so frustrating. If it 
didn't ever work, then I could stop obsessing about it and look for 
another solution. Here's what I'm trying to do.

I have a text file on the desktop, in a folder called "webRecord." I 
want to upload it to my FTP site, using this script:

   put empty into field 1
   put url "binfile:/G4 Titanium/Desktop Folder/webRecord/test.txt" 
into url "ftp://username:[EMAIL PROTECTED]/test.txt";
   put the result into field 1

I click the button, and after a few seconds get the "upload complete" 
message. But that's where the inconsistent results emerge.

Sometimes the file is uploaded correctly. Sometimes I get a zero byte 
file. Most of the time, though, I get nothing at all. No file is 
found on the server. It seems to happen if I try more than once. If I 
quit Metacard and then try again, I have better luck. Still not 
consistent, though.

I assume that I am doing something wrong. Can one of you more 
knowledgeable souls help me out here, so that I can sleep at night?

Thanks a lot!

Dennie


-- 

Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.

Reply via email to