Asking a Command Line Syntax

29 views
Skip to first unread message

James Hwang

unread,
Dec 28, 2014, 1:23:19 AM12/28/14
to qjsonrpc-d...@googlegroups.com

Hi.
What is the "exact" command line syntax to run tests/manual/httpclient?
Specifically I'd like to know how to specify the <command> param. Should I specify the "service name" in addition to the "method name"?
Let say, if I want to call the "immediateResponse" method in httpserver, I had run it with the command line "httpclient.exe immediateResponse". This does not work.
Please help me.

Thanks.
James Hwang

Matt Broadstone

unread,
Dec 28, 2014, 9:54:56 AM12/28/14
to James Hwang, qjsonrpc-d...@googlegroups.com
Hi James,

The manual httpclient test is rather incomplete. While it does take a "command" and "arguments" (as well as credentials) on the command line, the host/port is hard coded, and as far as I can tell it only sends the command (no arguments). I wrote this very quickly and gave it less importance since I had made the automated tests for the class.

The manual test is meant to serve as an example of how to use the http client class, and it was also written to be tested against a bitcoind server (this was the original usecase). It does seem like if you change line 66 to:

    HttpClient client("http://127.0.0.1:5555");

and run the HttpServer manual test, it should work (without any arguments). I would gladly accept pull requests to fix these if they are unclear, and am working on getting documentation in very soon.

Matt
> --
> You received this message because you are subscribed to the Google Groups "qjsonrpc-development" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to qjsonrpc-develop...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

James Hwang

unread,
Dec 28, 2014, 7:52:42 PM12/28/14
to qjsonrpc-d...@googlegroups.com
Thanks for the kind reply.
I'll try your suggestion.

James

2014년 12월 28일 일요일 오후 11시 54분 56초 UTC+9, Matt Broadstone 님의 말:
> To unsubscribe from this group and stop receiving emails from it, send an email to qjsonrpc-development+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages