Hi,
I try it for several times but I still get 405 now. I don't know why..
And this is my code...
@POST @Path("/ScanTarget") @Produces(MediaType.APPLICATION_JSON)
public int ScanIt() { connect.set_response(
connect.get_service(). request(). header("Content-Type",
"application/json").
post(Entity.json("{\"scan_profile\":/home/tiff/w3af/profiles, \"target_urls\" :
[\"http://testaspnet.vulnweb.com/\"]}"))); return connect.get_status();
}
I just used href="webapi/ScanTarget" to call it.
Thanks.
Tiff
------------------------------------------------------------------------------
_______________________________________________
W3af-develop mailing list
W3af-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/w3af-develop