title: Flutter fetch a webpage with user-agent parameter
body: <p>I am using flutter http package for fetch a webpage.
  I want to send http request like desktop.How can I do that ? </p>
  
  <p>My User-Agent : <code>"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36"</code></p>
  
  <p>my code ;</p>
  
  <pre><code>  String text="mert";
    var isLoading = false;
  
  
  
   _fetchData() async {
  
  
  final response =
      await http.get("http://trscript.net");
  if (response.statusCode == 200) {
  
   var document = parse(response.body.toString());
   if(document.querySelector("body &gt; div &gt; div.sol.yaklas &gt; div:nth-child(1) &gt; article &gt; div.yazi_bilgi")!=null){
      text = document.querySelector("body &gt; div &gt; div.sol.yaklas &gt; div:nth-child(1) &gt; article &gt; div.yazi_bilgi").text;
   }
  
  } else {
    throw Exception('Failed to load photos');
  }
  </code></pre>
  
  <p>}</p>