Do I have something set up incorrectly or is toysrus.com just denying access?
Thanks in advance
0 Votes
nestor posted
over 7 years ago
AdminBest Answer
Hi,
toysrus.com seems to be expecting some headers like Accept and Accept-Encoding, make sure to include those in your CURL request.
0 Votes
5 Comments
Sorted by
nestorposted
about 7 years ago
Admin
Sorry for replying so late here, I simply checked the request headers sent to the website in my browser's developer tools and added them to the curl command.
Thanks nestor! I'm pretty new to this. Can you briefly explain how you discovered that? Was it trial and error or something else that I should have noticed? Or, if you don't have the time, is there resource you would recommend to get me up to speed on diagnosing things like this?
0 Votes
nestorposted
over 7 years ago
AdminAnswer
Hi,
toysrus.com seems to be expecting some headers like Accept and Accept-Encoding, make sure to include those in your CURL request.
I just set up my Crawlera account and was testing the setup. I ran the commands
curl -x proxy.crawlera.com:8010 -U <API_KEY>: --cacert crawlera-ca.crt https://www.toysrus.com curl -x proxy.crawlera.com:8010 -U <API_KEY>: --insecure https://www.toysrus.com
Both commands timed out with the error message "Timeout processing HTTP stream". I did the following command and it worked:
curl -x proxy.crawlera.com:8010 -U <API_KEY>: --cacert crawlera-ca.crt https://www.amazon.com
Do I have something set up incorrectly or is toysrus.com just denying access?
Thanks in advance
0 Votes
nestor posted over 7 years ago Admin Best Answer
Hi,
toysrus.com seems to be expecting some headers like Accept and Accept-Encoding, make sure to include those in your CURL request.
0 Votes
5 Comments
nestor posted about 7 years ago Admin
Sorry for replying so late here, I simply checked the request headers sent to the website in my browser's developer tools and added them to the curl command.
1 Votes
joevu-stlpro posted over 7 years ago
For more info
1 Votes
stlproinc posted over 7 years ago
Just for anyone else that runs into this, the following curl command worked:
0 Votes
stlproinc posted over 7 years ago
Thanks nestor! I'm pretty new to this. Can you briefly explain how you discovered that? Was it trial and error or something else that I should have noticed? Or, if you don't have the time, is there resource you would recommend to get me up to speed on diagnosing things like this?
0 Votes
nestor posted over 7 years ago Admin Answer
Hi,
toysrus.com seems to be expecting some headers like Accept and Accept-Encoding, make sure to include those in your CURL request.
0 Votes
Login to post a comment