File: curl-test

package info (click to toggle)
phpwiki 1.3.14-3
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 15,716 kB
  • ctags: 23,548
  • sloc: php: 88,295; sql: 1,476; sh: 1,378; perl: 765; makefile: 602; awk: 28
file content (12 lines) | stat: -rwxr-xr-x 1,167 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash
#Note: dba requires RPC2.php for RecentChanges
url="http://reini/phpwiki-dev/RPC2.php"
#url="http://reini/phpwiki-dev/"
opt="-0 -v"

curl $opt -H 'Content-Type: text/xml' --data "<methodCall><methodName>wiki.getRPCVersionSupported</methodName><params/></methodCall>" $url
curl $opt -H 'Content-Type: text/xml' --data "<methodCall><methodName>wiki.getRecentChanges</methodName><params><param><value><string>20050717T21:18:03</string></value></param></params></methodCall>" $url
curl $opt -H 'Content-Type: text/xml' --data "<methodCall><methodName>wiki.getPage</methodName><params><param><value><string>HomePage</string></value></param></params></methodCall>" $url
curl $opt -H 'Content-Type: text/xml' --data "<methodCall><methodName>wiki.getPageVersion</methodName><params><param><value><string>HomePage</string></value></param><param><value><int>1</int></value></param></params></methodCall>" $url
# case-exact + starts_with
curl $opt -H 'Content-Type: text/xml' --data "<methodCall><methodName>wiki.titleSearch</methodName><params><param><value><string>Hom</string></value></param><param><value><int>5</int></value></param></params></methodCall>" $url