简体   繁体   English

如何传递 html 表单? 节点

[英]How can I pass a html form? nodejs

At the moment I try to reach a Website ( https://bracke-igs.de/iserv ).目前我尝试访问一个网站( https://bracke-igs.de/iserv )。 Here there is a form a need to pass to reach data on the website.这里有一个表单需要传递以访问网站上的数据。

My problem is that I dont manage to pass the form.我的问题是我无法通过表格。 Any hint?任何提示?

Thx for reading && thx for help!感谢阅读&&感谢帮助!

var request = require('request');
request = request.defaults({ jar: j })
request.post('https://bracke-igs.de/iserv/login_check?_username=test&_password=test')

I think the below snippet should help.我认为下面的代码片段应该会有所帮助。 For more options please refer here .有关更多选项,请参阅此处 And refer here for more sample implementations of request .在此处参考request更多示例实现。

request.post('https://bracke-igs.de/iserv/login_check').form({_username:'test', _password='test'})

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM