[Home]
[Edit this page]
[Recent Changes]
[Special Pages]
[Help]
CurlUndocumented
This package allows to establish a connection between Curl applications. That can be a connection between
Contained in CURL.DOC.GUIDE, allows to move draggable graphics on a Canvas.
Surge Lab project/package naming
If you name packages with the prefix identical to the project name, only the suffix is show. This makes the project view better readable.
For example, the project is called CURLEXAMPLE.CHAT and the package is called CURLEXAMPLE.CHAT.USER-INTERFACE, only .USER-INTERFACE is shown.
Manifest in packages
You can define manifests in packages. They are used as long as no other manifest has been defined.
For example, you import a package with a location hint and the package has a manifest declaration in the meta data then this manifest is used for this package and all sub-packages.
If a sub-package declares a manifest this is ignored. In order to use this manifest you have to add a delegate-to in the manifest of the top-level package.
Registry
You can access the registry if you have privileges.
Message Digests
CURL.CRYPTO.MSG-DIGEST contains SHA-1 message digests that can be used for authentication, etc. See Documentation at curlexamples.com
Curl on server (like PHP or ASP)
It is possible to run Curl script in the same way as PHP or ASP. Thereby HTML/XML versions of an applet can be generated using the same code as for the applet.
What to do to run curl scripts on a linux server with apache?
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
CurlUndocumented
Undocumented features of Curl
CURL.REMOTEThis package allows to establish a connection between Curl applications. That can be a connection between
- applets and subapplets (see Curlbreaker Article)
- applets and a script running on a server (see Puerto Rico source code)
Contained in CURL.DOC.GUIDE, allows to move draggable graphics on a Canvas.
{import * from CURL.DOC.GUIDE}
{value
let c:SimpleEditableCanvas =
{SimpleEditableCanvas background = "silver",
width=10cm, height=10cm}
{c.add x=1cm, y=1cm,
{Frame dragee = {ImageDragee},
"Hello World"}}
c
}
Surge Lab project/package naming
If you name packages with the prefix identical to the project name, only the suffix is show. This makes the project view better readable.
For example, the project is called CURLEXAMPLE.CHAT and the package is called CURLEXAMPLE.CHAT.USER-INTERFACE, only .USER-INTERFACE is shown.
Manifest in packages
You can define manifests in packages. They are used as long as no other manifest has been defined.
For example, you import a package with a location hint and the package has a manifest declaration in the meta data then this manifest is used for this package and all sub-packages.
If a sub-package declares a manifest this is ignored. In order to use this manifest you have to add a delegate-to in the manifest of the top-level package.
Registry
You can access the registry if you have privileges.
{import * from CURL.UTIL.REGISTRY}
{registry-get-string RegistryKeyHandle.hkey-current-user, |"Software\Curl Corporation\Curl\3.0\curl-internal\DebuggerPane"|, ""}
Message Digests
CURL.CRYPTO.MSG-DIGEST contains SHA-1 message digests that can be used for authentication, etc. See Documentation at curlexamples.com
Curl on server (like PHP or ASP)
It is possible to run Curl script in the same way as PHP or ASP. Thereby HTML/XML versions of an applet can be generated using the same code as for the applet.
What to do to run curl scripts on a linux server with apache?
- Install Curl RTE on the server.
- Add a mime type handler for curl scripts:
AddHandler curl-script xcurl
- Create a cgi-script (/cgi-bin/run-curl-script.cgi) that
- defines environment variable HOME
- starts curl with the calling script ($PATH_TRANSLATED)
HOME=/nobody export HOME
- !/bin/sh
/opt/curl/surge/4/bin/curl $PATH_TRANSLATED 2>&1 &
- echo Content-type: text/html
- echo ""
- Link script to mime-type:
Action curl-script /cgi-bin/run-curl-script.cgi
- Write a curl script that outputs the web page to stdout:
{with-open-streams tos = {get-stdout} do
{tos.write-one-string "Content-type:text/html"}
{tos.write-one-string "
"}
{write-something-as-html tos}
}
Done.
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
