title: Response from HTTP with GET method with params using axios in React Native
body: <p>I think this might be a very simple question but I'm new to Web requests and can get it working nor get a simple response searching the web</p>
  
  <p>I have a site from which I can get a JSON response by putting this URL into the browser: <code>http://www.test.com/callservice.php?action=stop&amp;x=1&amp;y=2&amp;ct=100</code></p>
  
  <p>This in turn gives me some JSON response.</p>
  
  <p>Now, I'm trying to get the same in Javascript using Axios.</p>
  
  <p>Either using the URL directly</p>
  
  <pre><code> componentWillMount() {
      axios.get('http://www.test.com/callservice.php?action=stop&amp;x=1&amp;y=2&amp;ct=100')
        .then(response =&gt; console.log(response));
    }
  </code></pre>
  
  <p>Or by using the GET params:</p>
  
  <pre><code> componentWillMount() {
      axios.get('http://www.test.com/callservice.php', {
        params: {
          action: 'stop',
          x: 1,
          y: 2,
          ct=100
        }
      })
        .then(response =&gt; console.log(response));
    }
  </code></pre>
  
  <p>But both approaches give the same error:</p>
  
  <pre><code>Possible Unhandled Promise Rejection (id: 0):
  Network Error
  Error: Network Error
  </code></pre>
  
  <p>And a more detailed error from catching:</p>
  
  <pre><code>Error: Network Error
      at createError (createError.js:15)
      at XMLHttpRequest.handleError (xhr.js:87)
      at XMLHttpRequest.dispatchEvent (event-target.js:172)
      at XMLHttpRequest.setReadyState (XMLHttpRequest.js:542)
      at XMLHttpRequest.__didCompleteResponse (XMLHttpRequest.js:378)
      at XMLHttpRequest.js:482
      at RCTDeviceEventEmitter.emit (EventEmitter.js:181)
      at MessageQueue.__callFunction (MessageQueue.js:236)
      at MessageQueue.js:108
      at guard (MessageQueue.js:46)
  </code></pre>