title: Logging the constructed URL string in a jQuery.ajax() GET request
body: <p>I'm wanting to log the fully constructed url string of a jQuery.ajax call.I'm setting the params in the data variable of the ajax command, like so:</p>
  
  <pre class="lang-js prettyprint-override"><code>jQuery.ajax({
    url: 'http://a.site.com',
    data: {
      format: 'json',
      name: 'John Smith',
      addressdetails: 1
    },
    beforeSend: function(jqXHR, settings) {
      console.log(jqXHR, settings); // Can't find it in these values
    },
    success: function(data, textStatus, jqXHR) {
      console.log(data, textStatus, jqXHR); // Nor in these
    }
  });
  </code></pre>
  
  <p>What I would be looking for in the logs from the example above is this string:</p>
  
  <pre><code>'http://a.site.com?format=json&amp;name=John%20Smith&amp;addressdetails=1'
  </code></pre>
  
  <p>I feel like there must be something I'm missing.  I'm convinced it will be in one of the callback functions, but can't for the life of me find it anywhere. Any help appreciated.</p>