Home
The Toolkit for Online Communities
15900 Community Members, 0 members online, 2287 visitors today
Log In Register

index.tcl

OpenACS Home : ACS API Browser : XML-RPC Server 0.3 : index.tcl

index.tcl

Accept XML-RPC POST requests and processes them. GET requests are shown links to the admin pages or docs.
Location:
packages/xml-rpc/www/index.tcl
Author:
Vinod Kurup [vinod@kurup.com]
Created:
Mon Sep 29 23:35:14 2003
CVS ID:
$Id: index.tcl,v 1.1 2003/11/26 02:59:14 vinodk Exp $

Related Files

[ hide source ] | [ make this the default ]

Content File Source

# /packages/xml-rpc/www/index.tcl
ad_page_contract {
    Accept XML-RPC POST requests and processes them. GET requests are shown
    links to the admin pages or docs.

    @author Vinod Kurup [vinod@kurup.com]
    @creation-date Mon Sep 29 23:35:14 2003
    @cvs-id $Id: index.tcl,v 1.1 2003/11/26 02:59:14 vinodk Exp $
} {
}

if {[string equal [ns_conn method] POST]} {
    set content [xmlrpc::get_content]
    ns_return 200 text/xml [xmlrpc::invoke $content]
    return
}

# GET requests fall through to index.adp