Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Support

Pages: 1 ... 55 56 [57] 58 59
841
General Discussions / REPLACE
« on: May 17, 2006, 04:20:49 PM »
So I can assume it's working for you and you just needed to talk about it with us? ;-)

John

842
General Discussions / terminology
« on: May 17, 2006, 04:18:46 PM »
Agreed !

I'm working on getting the 2.1 release together and that's my next job. (the docs on the wiki)

Any free time anyone has to donate to the ScriptBasic open source project would be greatly appreciated.

John

843
ScriptBasic Examples w/source / WEBGET - Browser based Curl Example
« on: May 17, 2006, 04:14:30 PM »
This example Curl program will retrieve the source HTML of the URL you submit. IE doesn't work with default security settings and the 'MIME Sniffing" feature needs to be disabled so the file attribute is used for MIME determination like the other browsers. MSDN Reference

http://www.scriptbasic.org/curl.html

Code: [Select]

*** getweb.bas ***

#!/usr/bin/scriba -c

INCLUDE cgi.bas
INCLUDE curl.bas

OPTION cgi$Method cgi::Post or cgi::Get

this_url = cgi::PostParam("geturl")

CURL = curl::init()
curl::option CURL,"URL",this_url
curl::option CURL,"FILE","/var/www/vhosts/scriptbasic.org/httpdocs/pagedump.txt"
curl::perform CURL
curl::finish CURL

cgi::Header 302,""
PRINT "Location: /pagedump.txt\n"
cgi::FinishHeader

END


*** curl.html ***

<html>
<head>
<title>ScriptBasic WebGet</title>
</head>
<body>
<h1>Curl Example</h1>

Enter URL to retrieve:

<form method="post" action="/cgi-bin/getweb.bas">
  <input type="text" name="geturl" size=40>
  <input type="submit" value="Get Page">
</form>
</body>
</html>

844
GTK-Server / Module GTK Overview
« on: May 15, 2006, 12:13:56 AM »
GTK-Server Web Site  (Peter van Eerten - author)

845
DBG / Module DBG Overview
« on: May 15, 2006, 12:00:43 AM »

846
T / Module (T)ools Overview
« on: May 14, 2006, 11:50:50 PM »

847
MT / Module MT Overview
« on: May 14, 2006, 11:45:59 PM »

848
GD / Module GD Overview
« on: May 14, 2006, 11:42:16 PM »

849
HASH / Module HASH Overview
« on: May 14, 2006, 11:38:14 PM »

850
RE / Module RE Overview
« on: May 14, 2006, 11:34:10 PM »

851
ZLIB / Module ZLIB Overview
« on: May 14, 2006, 11:31:48 PM »

852
NT / Module NT Overview
« on: May 14, 2006, 11:28:11 PM »

853
CIO / Module CIO Overview
« on: May 14, 2006, 11:24:38 PM »

854
Curl / Module CURL Overview
« on: May 14, 2006, 11:19:19 PM »

855
PSQL / Module PSQL Overview
« on: May 14, 2006, 11:12:30 PM »
DISCONTINUED support in ScriptBasic 3.0

Original PostgreSQL Documentation

Pages: 1 ... 55 56 [57] 58 59