title: python web request scraping return error 404
body: <p>iam trying to web <strong>scrape</strong> this yellow page website to get contacts detail below iam trying to do a POST requests but return with a 404 error message. iam using <a href="https://curl.trillworks.com/" rel="nofollow noreferrer">https://curl.trillworks.com/</a> to convert my response to python.</p>
  <pre><code>import requests
  
  headers = {
     'authority': 'www.google-analytics.com',
     'cache-control': 'max-age=0',
     'sec-ch-ua': '^\\^Chromium^\\^;v=^\\^94^\\^, ^\\^Google',
  'sec-ch-ua-mobile': '?0',
  'sec-ch-ua-platform': '^\\^Windows^\\^',
  'upgrade-insecure-requests': '1',
  'origin': 'https://www.yellowpages.vu',
  'content-type': 'text/plain',
  'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like 
  Gecko) Chrome/94.0.4606.61 Safari/537.36',
  'accept': '*/*',
  'sec-fetch-site': 'cross-site',
  'sec-fetch-mode': 'cors',
  'sec-fetch-user': '?1',
  'sec-fetch-dest': 'empty',
  'referer': 'https://www.yellowpages.vu/search/results',
  'accept-language': 'en-US,en;q=0.9,pt;q=0.8',
  'cookie': 'c48afa9a35ba10b75b2d5013ea9c8a8e=5c508b71eea0e6b13c24cb2d048b2fff; 
  SPro_ssid=163282557391.71.0; _ga=GA1.2.1650230856.1632825595; 
  _gid=GA1.2.1275902665.1632825595; _gat=1',
  'Referer': 'https://www.yellowpages.vu/templates/yellowpages/XTC/css.php? 
  id=15&amp;groups=typo,grid,style1,css3effects',
  'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like 
   Gecko) Chrome/94.0.4606.61 Safari/537.36',
  'Origin': 'https://www.yellowpages.vu',
  'content-length': '0',
  }
  
  params = (
     ('reset', '1'),
  )
  
  data = {
  'xt_search_for': 'car',
  'to_sid_list_1': '',
  'field_city': '',
  'ssid': '163282557391.71.0',
  'sid': '1',
  'task': 'search.search',
  'option': 'com_sobipro',
  'Itemid': '187',
  '6f7efb93929c56901a56bdeab2f7e50c': '1',
  'sectionid': '1',
  'default_query': '',
  'field_categories': '',
  'sp_search_for': 'car'
  }
  
  response = requests.post('https://www.yellowpages.vu/search/index.php', 
  headers=headers, params=params, data=data)
  
  print(response)
  </code></pre>