node.js - node发post请求参数过长
大家讲道理
大家讲道理 2017-04-17 15:27:28
0
2
758
request.post( urlstr )
    .set('Content-Type', 'application/x-www-form-urlencoded')
    .send(da)
    .end(function(err, res){
        if (!err) {
            console.log(res.body)
            callback(res.body);
        }else{

        };
        
    })
if (this.config.obj.productInfo) {
        this.config.obj.productInfo =  encodeURI( this.config.obj.productInfo );
    };
    var bodyQueryStr = this.config.obj;
    

    var da = '';

    for (var a in bodyQueryStr) {
        da += a +'='+ bodyQueryStr[a] + '&';
    };

使用SuperAgent发post请求 当参数过长时 失效了 什么原因呢 和 application/x-www-form-urlencoded 有关系吗

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

모든 응답(2)
黄舟

객체를 여러 개의 단일 키-값 쌍으로 분할하면 어떻게 되나요?

小葫芦

으아악

이 설정을 사용하면 크기 제한을 수정하고 이미지를 전송할 수 있으며 필드가 충분해야 합니다.

최신 다운로드
더>
웹 효과
웹사이트 소스 코드
웹사이트 자료
프론트엔드 템플릿