R
R
Roma Antonyuk2017-06-26 15:42:53
Yii
Roma Antonyuk, 2017-06-26 15:42:53

How to display http request in google chrome console?

An ajax request is sent to the controller action, and already with the action there is a request to the api. Is it possible to somehow track the request from the action in the browser console or not?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Bille, 2017-06-26
@alexey_bille

Via jQuery

$.ajax({
  url: "script.php",
  method: "POST",
}).done(function( msg ) {
  console.log( msg );
}).fail(function( jqXHR, textStatus ) {
  console.log( "Request failed: " + textStatus );
});

D
Demian Smith, 2017-06-26
@search

Here is the extension https://chrome.google.com/webstore/detail/php-cons...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question