Axios get in url works but with second parameter as object it doesn't : <p>I'm trying to send GET request as second parameter but it doesn't work while it does as url.</p>

<p>This works, $_GET['naam'] returns test:</p>

<pre><code>export function saveScore(naam, score) {
  return function (dispatch) { 
    axios.get('http://****.nl/****/gebruikerOpslaan.php?naam=test')
      .then((response) =&gt; {
        dispatch({type: "SAVE_SCORE_SUCCESS", payload: response.data})
      })
      .catch((err) =&gt; {
        dispatch({type: "SAVE_SCORE_FAILURE", payload: err})
      })
  }
};
</code></pre>

<p>But when I try this, there is nothing in <code>$_GET</code> at all:</p>

<pre><code>export function saveScore(naam, score) {
  return function (dispatch) { 
    axios.get('http://****.nl/****/gebruikerOpslaan.php',
    {
        password: 'pass',
        naam: naam,
        score: score
    })
      .then((response) =&gt; {
        dispatch({type: "SAVE_SCORE_SUCCESS", payload: response.data})
      })
      .catch((err) =&gt; {
        dispatch({type: "SAVE_SCORE_FAILURE", payload: err})
      })
  }
};
</code></pre>

<p>Why can't I do that? In the docs it clearly says it's possible. With <code>$_POST</code> it doesn't work either.</p>
