我想用CURL创建HTTP请求。这里我想发送带有特殊字符的查询字符串。如何在源键中发送以下字符串?如何在URL搜索字符串中使用特殊字符发送字符串?
“的#include INT主要(){返回0;}”
我有一个像下面的代码,但它不工作
curl -X POST -H 'Content-Type: application/json' -d '{"problemCode": "SE0034", "compilerId": 11, "source": "#include<stdio.h> int main(){ return 0; }"}' "http://92161595.problems.sphere-engine.com/api/v3/submissions?access_token=12345678dsw21"
我不知道什么是错在这里?
我在发布问题之前更改了原始访问令牌。 – anandh
@anandh我想,但你提供的命令是正确的 – bradynpoulsen