You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "tls_req.py", line 12, in <module>
File "<string>", line 104, in <module>
File "<string>", line 90, in main
File "curl_cffi\requests\__init__.py", line 125, in request
File "curl_cffi\requests\session.py", line 900, in request
File "curl_cffi\requests\session.py", line 618, in _set_curl_options
File "curl_cffi\curl.py", line 202, in setopt
TypeError: initializer for ctype 'char *' must be a bytes or list or tuple, not str
[15712] Failed to execute script 'tls_req' due to unhandled exception!
The text was updated successfully, but these errors were encountered:
requests.post 自带的设置headers的功能会限制 Content-Type为application/json或者application/x-www-form-urlencoded,由于服务器端只接受application/json; charset=UTF-8,我想通过curl_options设置header,但是我尝试了以上两种方式之后均报同样的错误
The text was updated successfully, but these errors were encountered: