[Kea-users] Basic Question: Using the Control Agent

Marcin Siodelski marcin at isc.org
Mon Aug 13 14:19:49 UTC 2018


On 17.07.2018 19:27, Phoebe Lee wrote:
> Hi!
> Not sure how to run my CA. When I go to the URL of the CA it just says:
> result: 400
> test: "Bad Request" 
> 
> When I run commands through the kea-shell it works correctly with the
> same host and port parameters. If the CA was running correctly would I
> be able to issue JSON commands for my hooks through this URL?
> 
> Phoebe
> 
> 
> _______________________________________________
> Kea-users mailing list
> Kea-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/kea-users
> 

Hi,

I realize that this thread is a bit old, but in case you haven't found
the solution please have a look into Kea User's Guide:

https://kea.isc.org/docs/kea-guide.html#ctrl-channel-client

It includes an example of using curl to generate a proper command. The
bottom line is that the command must include application/json content
type header, must be sent using POST (rather than GET) and the JSON
command must be well formed.

If you go to the URL of the CA with a web browser you're getting Bad
Request because the browser would use GET (not POST) and would likely
use text/html as a content type. Not to mention that it wouldn't send
any command that Kea can understand.

Hope that helps,

Marcin Siodelski
ISC Engineering



More information about the Kea-users mailing list