[Home]  [Edit this page]  [Recent Changes]  [Special Pages]  [Help
CppPrivate » The GPRMC Sentence » QBasicFAQ » QbasicFAQ_UsingSoundCard » CppVcl » QbasicFAQ_BadFileMode » database » encryption » CppDefinition » WhatLinksHere » CurlUndocumented

Undocumented features of Curl

CURL.REMOTE

This package allows to establish a connection between Curl applications. That can be a connection between SimpleEditableCanvas

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)
  1. !/bin/sh
HOME=/nobody export HOME
  1. echo Content-type: text/html
  2. echo ""
/opt/curl/surge/4/bin/curl $PATH_TRANSLATED 2>&1 &
  • 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.

last edited (October 23, 2004) by friedger, Number of views: 5774, Current Rev: 3 (Diff)

[Edit this page]  [Page history]  [What links here]  [Discuss this topic]  [Printer Friendly]  

Members

Username:

Password:


Register
Forgot Password?




Programmers Heaven - for .NET, Java, C/C++ and WEB Developers!
© 1996-2008 Community Networks Ltd. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited. Violators of this policy may be subject to legal action. Please read Terms Of Use and Privacy Statement for more information. Site Management by Lars Hagelin at Kontantkort.se.