我在localhost:3000 ..
上启动了node express** curl -H' samlresponse:12323' -v http://localhost:3000,正确返回数据。
但如果我试着跟随......
curl -H' samlresponse:{这是整个samlresponse,它很长......差不多20k ..}' -v http://localhost:3000
服务器始终返回"来自服务器"的空回复,是否有办法传递或解决此问题?
答案 0 :(得分:2)
Source Code of node at github说:
/* Maximium header size allowed. If the macro is not defined
* before including this header then the default is used. To
* change the maximum header size, define the macro in the build
* environment (e.g. -DHTTP_MAX_HEADER_SIZE=<value>). To remove
* the effective limit on the size of the header, define the macro
* to a very large number (e.g. -DHTTP_MAX_HEADER_SIZE=0x7fffffff)
*/
#ifndef HTTP_MAX_HEADER_SIZE
# define HTTP_MAX_HEADER_SIZE (80*1024)
#endif
因此,您可能需要从源重建节点以超过80*1024
的限制。但是,就个人而言,我认为它足够大,可以重新评估你的标准是否正确。