Re: [W3af-develop] web service api post method

2015-07-30 Thread 冠庭 羅
Hi all, Finally, I can use post method to start scan... It spends me almost one week thanks everyone's help. I tried to figure out how to change ip address and open port... I found it, too!!! So Thanks again. Andres Riancho 於 2015/7/29 (週三) 8:02 PM 寫道﹕ I modified the documentat

Re: [W3af-develop] web service api post method

2015-07-29 Thread Andres Riancho
I modified the documentation to show a successful POST request and response: http://docs.w3af.org/en/latest/api/scans.html#starting-a-scan On Wed, Jul 29, 2015 at 12:29 AM, 冠庭 羅 wrote: > Hi, > I think I got what you mean.. > > @POST > @SuppressWarnings("unchecked") > @Path("/ScanTarget"

Re: [W3af-develop] web service api post method

2015-07-28 Thread 冠庭 羅
Hi, I think I got what you mean.. @POST@SuppressWarnings("unchecked")@Path("/ScanTarget") @Consumes(MediaType.APPLICATION_JSON)@Produces(MediaType.APPLICATION_JSON)     public void ScanIt() throws JSONException, IOException{    File _file = new  File("/home/tiff/w3af/pro

Re: [W3af-develop] web service api post method

2015-07-28 Thread Andres Riancho
Tiff, Why do you create a new email thread for each email you send? On Tue, Jul 28, 2015 at 12:13 AM, 冠庭 羅 wrote: > Hi Andrés Riancho, > > Sorry.. That is language gap... I thought that filename is like > "fast_scan.pw3af" so that I keep trying on folder name > But anyway, I tried "../../fas

Re: [W3af-develop] web service api post method

2015-07-27 Thread Owen Tuz
Hi Tiff, That looks like it is working - a 301 response just means that you are being automatically redirected from '/scans' to '/scans/' (with the extra slash). Since you then receive HTTP code 200, it looks like your code is correctly following the redirect and sending data to /scans/. If you

Re: [W3af-develop] web service api post method

2015-07-27 Thread Owen Tuz
http://httpstatus.es/301 On 28 Jul 2015 7:33 am, "Owen Tuz" wrote: > Hi Tiff, > > That looks like it is working - a 301 response just means that you are > being automatically redirected from '/scans' to '/scans/' (with the extra > slash). > > Since you then receive HTTP code 200, it looks like yo