我正在做一個簡單的post請求到一個網站的API,其中params
只是一個json對象。它看起來像網站有一定的訪問控制機制,它返回請求庫POST請求得到http 450錯誤
{"status":450,"error":""}
,我發現這個
450 Blocked by Windows Parental Controls (Microsoft)
A Microsoft extension. This error is given when Windows Parental Controls are turned on and are blocking access to the given webpage.
有沒有什麼辦法可以突破網站的這款Windows家長控制限制?
你試過把json對象串起來嗎? – hisener
@hisener你是什麼意思?我將json文件轉換爲json obj - ,其中open(path,encoding ='utf-8')爲f: return json.load(f) – Lixu
我的意思是你不應該直接發送json。你應該把它作爲一個字符串發送。 – hisener