Skip to content

Instantly share code, notes, and snippets.

@kinow
Created September 28, 2012 23:25
Show Gist options
  • Save kinow/3802576 to your computer and use it in GitHub Desktop.
Save kinow/3802576 to your computer and use it in GitHub Desktop.
public static void main(String[] args) throws Exception {
TestLinkAPI api = new TestLinkAPI(new URL("http://localhost/testlink-1.9.4/lib/api/xmlrpc.php"), "f3230e0850876097abdfef4e3cd01145");
Boolean b = api.checkDevKey("f3230e0850876097abdfef4e3cd01145");
System.out.println(b);
}
@kinow
Copy link
Author

kinow commented Sep 28, 2012

true

@kinow
Copy link
Author

kinow commented Sep 28, 2012

POST /testlink-1.9.4/lib/api/xmlrpc.php HTTP/1.1
Content-Type: text/xml
User-Agent: Apache XML RPC 3.1.3 (Sun HTTP Transport)
Cache-Control: no-cache
Pragma: no-cache
Host: localhost
Accept: text/html, image/gif, image/jpeg, ; q=.2, */; q=.2
Connection: keep-alive
Content-Length: 310

tl.checkDevKeydevKeyf3230e0850876097abdfef4e3cd01145HTTP/1.1 200 OK

Date: Fri, 28 Sep 2012 23:23:54 GMT
Server: Apache/2.2.22 (Debian)
X-Powered-By: PHP/5.4.4-7
Connection: close
Content-Length: 163
Vary: Accept-Encoding
Content-Type: text/xml

1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment