400 - Bad request while extracting HAR logs

37 views
Skip to first unread message

sagar....@globant.com

unread,
Sep 11, 2018, 2:01:42 PM9/11/18
to martianproxy-users

Hi team,
I am trying to use martian proxy on windows 10 host to intercept traffic from my Android mobile.

I started the proxy using the command proxy -v=2 - har=true.

Proxy is started with default settings [traffic on 8080 and api on 8181]
I am getting a 400 - Bad request when I try to get the har logs with the following get requests

GET http://localhost:8181/logs

GET http://localhost:8080/logs

I am using Advanced Rest Client to call Martian rest APIs.

Could you please help?


Thanks

Sagar

sagar....@globant.com

unread,
Sep 11, 2018, 2:33:27 PM9/11/18
to martianproxy-users
Apologies. Here are the correct error message

Hi team,
I am trying to use martian proxy on windows 10 host to intercept traffic from my Android mobile.

I started the proxy using the command proxy -v=2 - har=true.

Proxy is started with default settings [traffic on 8080 and api on 8181]

I am getting following errorss when I try to get the har logs

GET http://localhost:8181/logs- 400 Bad Request

GET http://localhost:8080/logs- 404 Not Found

I am using Advanced Rest Client to call Martian rest APIs.

Could you please help?


On Tuesday, September 11, 2018 at 11:31:42 PM UTC+5:30, sagar....@globant.com wrote:

Hi team,
I am trying to use martian proxy on windows 10 host to intercept traffic from my Android mobile.

I started the proxy using the command proxy -v=2 - har=true.

Proxy is started with default settings [traffic on 8080 and api on 8181]
I am getting 

Bramha Ghosh

unread,
Sep 11, 2018, 3:16:24 PM9/11/18
to sagar....@globant.com, martianproxy-users
Try starting the proxy with --api=localhost

The information contained in this e-mail may be confidential. It has been sent for the sole use of the intended recipient(s). If the reader of this message is not an intended recipient, you are hereby notified that any unauthorized review, use, disclosure, dissemination, distribution or copying of this communication, or any of its contents, is strictly prohibited. If you have received it by mistake please let us know by e-mail immediately and delete it from your system. Many thanks.

 

La información contenida en este mensaje puede ser confidencial. Ha sido enviada para el uso exclusivo del destinatario(s) previsto. Si el lector de este mensaje no fuera el destinatario previsto, por el presente queda Ud. notificado que cualquier lectura, uso, publicación, diseminación, distribución o copiado de esta comunicación o su contenido está estrictamente prohibido. En caso de que Ud. hubiera recibido este mensaje por error le agradeceremos notificarnos por e-mail inmediatamente y eliminarlo de su sistema. Muchas gracias.


--
You received this message because you are subscribed to the Google Groups "martianproxy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to martianproxy-us...@googlegroups.com.
To post to this group, send email to martianpr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/martianproxy-users/2dd66ae3-11f6-45a1-b788-655a370622f5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Sagar Shinde

unread,
Sep 12, 2018, 1:45:44 AM9/12/18
to bra...@google.com, martianpr...@googlegroups.com
Hi Bramha,

It worked like a charm!. I spent hours to get this working.

I think readme on the Github should be updated with this information.

Thank you very much for your prompt response.

Thanks
Sagar



Sagar Shinde

unread,
Sep 12, 2018, 7:41:50 AM9/12/18
to Bramha Ghosh, martianpr...@googlegroups.com
Hi Bramha/ Group members-

I am working on a pilot QA project in which I need to set intercept Http Requests and Responses originating from Android native app.

I then need to compare the request and response contents against the UI.

Is there any documentation available to achieve this using Martian Proxy (In general, Is there a documentation available for Martian proxy apart from GITHub)?

I tried analyzing HAR files from the Martian Proxy logs but there seems to be some format issues due which I was not able to open file with online HAR viewers 

Thanks in advance for any pointers/ guidance you can offer. Sorry for too many emails.

Thanks
Sagar 
Reply all
Reply to author
Forward
0 new messages