Skytrobb

Results 6 comments of Skytrobb

I can get a curl request to work but if I put that same curl request into postman it doesn't work. How can their endpoints differentiate the two?

I'd be happy to help. I think the first thing we need to do is figure out how nba.stats can differentiate between http requests originating from their website and requests...

`curl 'https://stats.nba.com/stats/leagueseasonmatchups?DateFrom=&DateTo=&DefPlayerID=201935&LeagueID=00&Outcome=&PORound=0&PerMode=Totals&Season=2019-20&SeasonType=Regular+Season' -H 'Pragma: no-cache' -H 'X-NewRelic-ID: VQECWF5UChAHUlNTBwgBVw==' -H 'Accept-Encoding: gzip, deflate, br' -H 'Accept-Language: en-US,en;q=0.9' -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.86 Safari/537.36' -H 'Accept:...

yeah you can import curl commands into postman and it will populate the headers for you. I've tried that in addition to copying headers over by hand and nothing works....

Still getting timeouts when calling leagueSeasonMatchups. Only calling the API once so time.sleep() is not applicable here. Has anyone else had this problem?

times out when using postman or from my Django server being run locally. works fine with curl though