当前位置:网站首页>Curl --- the request fails when the post request parameter is too long (more than 1024b)
Curl --- the request fails when the post request parameter is too long (more than 1024b)
2022-06-30 10:20:00 【Fallacious】
Today I send curl when , Report errors Argument list too long
curl -H “Content-Type: application/json " -iv -X POST -d '{“id”:“1111112012”,“name”:”…",“age”:"…"}’ http://192.168.1.1:3000/api/query
(… A lot of things have been omitted )
So it was changed to json Put the parameters in param.json File
curl -H "Content-Type: application/json " -iv -X POST -d @‘param.json’ http://192.168.1.1:3000/api/query
But back 100-continue
reason :
because post The request header of the request defaults to “Expect”:“100-continue”, That is, sending more than 1024B After parameter of size , You will first ask the server whether it receives , The server will not continue sending until it agrees to accept .
terms of settlement :
Modify request header Expect The parameter is empty. ,-H “Expect”:" "
curl -H “Expect”:" " -H "Content-Type: application/json " -iv -X POST -d @‘param.json’ http://192.168.1.1:3000/api/query
边栏推荐
- Compare the maximum computing power of the Cenozoic top ant s19xp and the existing s19pro in bitland
- train_de.py: error: argument --save_steps: invalid int value: ‘$[$[889580/128/4]*10/2]‘
- L'activité "Kunming City coffee map" a rouvert
- Launch of Rural Revitalization public welfare fund and release of public welfare bank for intangible cultural heritage protection of ancient tea tree
- Memorize the text and remember the words. Read the text and remember the words. Read the article and remember the words; 40 articles with 3500 words; 71 articles broke through the words in the middle
- Appium automation test foundation - 12 Introduction to appium automated testing framework
- 事件委托的使用与说明》
- 乡村振兴公益基金启动暨古茶树非遗保护公益行发布
- Cobbler Automated Deployment
- Some domestic image sources
猜你喜欢

MySQL advanced SQL statement of database (2)

Appium automation test foundation - ADB shell command

Shell script multi loop experiment

Guolin was crowned the third place of global popularity of perfect master in the third quarter of 2022

How does the diode work?

新冠无情人有情,芸众惠爱心善举暖人间——捐赠商丘市儿童福利院公益行动

MIT-6874-Deep Learning in the Life Sciences Week6

"Kunming City coffee map" was opened again, and coffee brought the city closer

【JVM】G1垃圾回收器简述

Rider does not prompt after opening unity script
随机推荐
C语言实现扫雷游戏,附详解及完整代码
Get through the supply chain Shenzhen gift show helps cross-border e-commerce find ways to break the situation
About Jul
Who should the newly admitted miners bow to in front of the chip machine and the graphics card machine
开源了!文心大模型ERNIE-Tiny轻量化技术,又准又快,效果全开
“昆明城市咖啡地图”活动再度开启
Enter the world of helium (hNT) hotspot servers to bring you different benefits
Rider does not prompt after opening unity script
G 代码解释|最重要的 G 代码命令列表
Use and description of event delegation
JUL简介
log4j
AttributeError: ‘Version‘ object has no attribute ‘major‘
[C language quick start] let you know C language and get started with zero basics ③
About the split and join operations of strings
Article content cannot be copied
"Kunming City coffee map" activity was launched again
NLopt--非线性优化--原理介绍及使用方法
9. cache optimization
What is the real performance of CK5, the king machine of CKB?