Recent Posts

Pages: [1] 2 3 ... 10
1
General Discussions / Re: help: upload files to FTP using cURL
« Last post by support on Today at 04:02:33 PM »
Code: Script BASIC
  1.  
  2. Import "c:\scriptbasic\include\curl.bas"
  3.  

I'm supprised that Script BASIC is even loading the curl.bas file with the non-escaped \ you're using.

Have you tried using Script BASIC's CHDIR to define your working directory?
2
General Discussions / help: upload files to FTP using cURL
« Last post by Script_test on May 22, 2017, 07:04:00 AM »
Hello,
I have a problem
I need to upload a file by ftp.
You could help me with this script, I can not find a way to change directory and upload the file.

thank you in advance


Code: [Select]

Import "c:\scriptbasic\include\curl.bas"


archivo = "C:\\Windows\\notepad.exe"
USER = "YOURftpuser"
password = "YOURftppassword"
ftpurl ="ftp://YOURSERVER.com/"
rem

CURL = curl::init()
curl::option CURL,"VERBOSE"
curl::option CURL,"URL",ftpurl
curl::option CURL,"USERPWD",USER & ":" & password
rem
rem server dir
rem logs
rem html
rem errors
rem cgi-bin


curl::option Curl,"QUOTE","cd /html"

curl::option CURL,"INFILE",archivo
curl::option CURL,"UPLOAD"


 
curl::perform CURL


curl::finish CURL

rem

when run

Code: [Select]
* About to connect() to myftpserver port 21 (#0)
*   Trying 000.00.000.220... * connected
* Connected to myftpserver (000.00.000.220) port 21 (#0)
< 220 Welcome to FTP service.
> USER myusername
< 331 Please specify the password.
> PASS mypass
< 230 Login successful.
> PWD
< 257 "/"
* Uploading to a URL without a file name!
* Uploaded unaligned file size (0 out of 179712 bytes)
* Closing connection #0
(0): error 0x00081103:Extension specific error: %s
3
General Discussions / Re: Linux Virtual Machine
« Last post by support on May 03, 2017, 01:17:09 PM »
Glad to hear you figured out what the problem was. Script BASIC variables being typeless until use can trip you up if not careful.

4
General Discussions / Re: Linux Virtual Machine
« Last post by Script_test on May 03, 2017, 03:01:23 AM »
I've already located the bug. Was not in the curl library
I was in the use of variables and arrays with the same name.
So far everything worked correctly but when the program repeated many times the process .... failed due to lack of memory.

Example: (My program has more than 7k lines...)

Static_value [f] = random_value
Static_value = 3
^^ ---- Execution worked four times... and then (out of memory)

Solved renamed
Static_value [f] = random_value
my_Static_value = 3

Ty ;D
5
General Discussions / Re: Linux Virtual Machine
« Last post by support on May 02, 2017, 09:27:28 PM »
Are you using the latest Inno based Windows install curl module?

Out of memory is a catch all error in extension modules as the developers didn't take the time to describe the actual error properly.  I'm slowly rewriting the distributed extension modules in C BASIC for readability, updating libraries and cleanup. Most all of the extension modules I've done are in C BASIC.





6
General Discussions / Linux Virtual Machine
« Last post by Script_test on May 02, 2017, 10:25:09 AM »
Hi, I have random problems with the curl library under windows, the last one (out of memory).
As I see in the comments, under linux everything seems to work fine. I have no experience in configuring linux.
You could share (download)a virtual machine with everything configured to be able Working and tests with scriptbasic. ?
Thank you very much.
7
What's New / Re: Script BASIC Windows 32 bit - Download Available
« Last post by support on April 24, 2017, 11:54:13 AM »
I'm glad Script BASIC found a home in your toolbox of languages.

Keep us in the loop as your projects unfold.
8
What's New / Re: Script BASIC Windows 32 bit - Download Available
« Last post by AlyssonR on April 24, 2017, 09:18:39 AM »
I have been having fun ever since I first installed Script Basic (much more fun than VB6)

At the moment, most of my fun is involved with academic and outdoor pursuits rather than advancing any of my computer-related projects - indeed, the only programming I have done in 3 months is a couple of Windows Scripting Engine scripts and a change to one of my VB6 data-crunchers in order to fix a broken RTF file output routine (and even that was all trivial in nature).
9
What's New / Re: Script BASIC Windows 32 bit - Download Available
« Last post by support on April 21, 2017, 08:43:15 PM »
How are things going in general with Script BASIC? Are you having fun yet?  :)
10
What's New / Re: Script BASIC Windows 32 bit - Download Available
« Last post by AlyssonR on April 19, 2017, 11:00:38 AM »
Brilliant, thanks.

Not that I'm actually using them at the moment.
Pages: [1] 2 3 ... 10