title: Get URL of a http get request in flutter app
body: <p>I am trying to get the URL of the following get request;</p>
  
  <pre><code>String url = ['url_here'];
  Future&lt;Post&gt; fetchPost() async {
  final response = await http.get(url);
  
  if (response.statusCode == 200) {
  return Post.fromJson(json.decode(response.body));
  } else {
  throw Exception('Failed to load post');
  }
  }
  </code></pre>
  
  <p>I get a statuscode of 200.</p>
  
  <p>Any ideas?</p>
  
  <p>To clarify, When you enter the url in a browser it brings me to a page with a url that has a code in it. I am trying to extract that code.</p>