title: python request get status code 200 but response.content is empty
body: <p>I am trying to get <a href="https://invest.wessiorfinance.com/notation.html" rel="nofollow noreferrer">this</a> website information by python requests, after clicking the drawing button (red button), the browser will receive 3 responses, for example:</p>
  <ol>
  <li>[GET] <a href="https://invest.wessiorfinance.com/searchid.html?Stock=2330" rel="nofollow noreferrer">https://invest.wessiorfinance.com/searchid.html?Stock=2330</a></li>
  <li>[GET] <a href="https://invest.wessiorfinance.com/Stock_api/Notation_cal?Stock=2330&amp;Odate=2022-04-11&amp;Period=3.5&amp;is_log=0&amp;is_adjclose=0" rel="nofollow noreferrer">https://invest.wessiorfinance.com/Stock_api/Notation_cal?Stock=2330&amp;Odate=2022-04-11&amp;Period=3.5&amp;is_log=0&amp;is_adjclose=0</a></li>
  <li>[GET] <a href="https://invest.wessiorfinance.com/stock_api/Big_Trend?Stock=2330&amp;Odate=2022-04-11&amp;Period=3.5" rel="nofollow noreferrer">https://invest.wessiorfinance.com/stock_api/Big_Trend?Stock=2330&amp;Odate=2022-04-11&amp;Period=3.5</a></li>
  </ol>
  <p>And I found that first response will set cookie by {'ci_session': 'random string'},
  then used the session with cookie to get second and third responses.</p>
  <p>Here is my code:</p>
  <pre><code>import requests
  import json
  headers = {'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.75 Safari/537.36','x-requested-with': 'XMLHttpRequest',}
  session = requests.session()
  url =&quot;https://invest.wessiorfinance.com/searchid.html?Stock=2330&quot;
  response = session.get(url, headers = headers)
      if response.status_code == 200:
          print(json.loads(response.content.decode('utf-8')))
  </code></pre>
  <p>By this way, I can get success response and then I checked session.cookies.get_dict()
  it showed that there is a new cookie {'ci_session': 'random string'}.
  So I use same session to get second url's response, here is my code:</p>
  <pre><code>url2 = &quot;https://invest.wessiorfinance.com/Stock_api/Notation_cal?Stock=2330&amp;Odate=2022-04-11&amp;Period=3.5&amp;is_log=0&amp;is_adjclose=0&quot;
  response = session.get(url2, headers = headers)
  if response.status_code == 200:
      print(response.content)
  </code></pre>
  <p>I am pretty sure that this session's cookie already has new item &quot;ci_session&quot; ,
  the status_code is always 200 but response.content is empty(b'')!
  It confused me a lot! Is there any suggest?
  Thanks!</p>