When i make a post request in Scrapy by scrapy.http.FormRequest without using crawler i get correct response. Response has type json. But when i use crawlera i get html response. My url
So, I indicate the header "Accept" by value "application/json", but with crawlera i get html body response. I think, crawlera change my request. How can i fix it?
Hello!
When i make a post request in Scrapy by scrapy.http.FormRequest without using crawler i get correct response. Response has type json. But when i use crawlera i get html response. My url
{"Accept": "application/json",
"Accept-Encoding": "gzip, deflate, br",
"Accept-Language": "q=0.8,en-US;q=0.5,en;q=0.3",
"Cache-Control": "no-cache",
"Connection": "keep-alive",
"Pragma": "no-cache",
"TE": "Trailers", "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
"X-Requested-With": "XMLHttpRequest",
}
1 Votes
0 Comments
Login to post a comment