添加到请求头中每次请求使用即可 headers['cookie'] = 'JSESSIONID=$JSESSIONID;username=$username'; 具体使用方法 http.Response response = await http.post( 'http://***', body: {'id': $id}, headers: {'cookie': 'JSESSIONID=$JSESSIONID;password=$password;token=$token'}, );
flutter添加http请求头
最新推荐文章于 2023-02-13 09:31:01 发布