POST http://XXXXXX:8080/soap/IMyYaya/ HTTP/1.1
User-Agent: ksoap2-android/2.6.0+
SOAPAction: urn:MyYayaIntf-IMyYaya#SetSecurityOn
Content-Type: text/xml;charset=utf-8
Accept-Encoding: gzip
Content-Length: 405
Host: 4.50yaya.com:8080
Connection: Keep-Alive
<v:Envelope xmlns:i=“http://XXXX/2001/XMLSchema-instance” xmlns:d=“http://XXXXX/2001/XMLSchema” xmlns:c=“http://schemas.xmlsoap.org/soap/encoding/” xmlns:v=“http://schemas.xmlsoap.org/soap/envelope/”><v:Header /><v:Body>{“Id”:XXX2,“Password”:“XXXX2”}</v:Body></v:Envelope>
上面是我手机app开车门的抓包数据,通过fiddler数据重演可以打开车门,如何在node中模拟这个过程,主要是请求体是xml的不知道如何发送,求大神帮助,可以有偿!
有问题戚贴子讨论不好么,大家都可以看到,会的都会为你解答
oemsys
#7
这个很简单,呀,
msg.headers = {
'User-Agent': 'ksoap2-android/2.6.0+',
'SOAPAction': 'urn:MyYayaIntf-IMyYaya#SetSecurityOn',
'Content-Type': 'text/xml;charset=utf-8',
'Accept-Encoding': 'gzip',
'Content-Length': 405,
'Host': '4.50yaya.com:8080',
'Connection': 'Keep-Alive'
}
msg.url = ‘http://XXXXXX:8080/soap/IMyYaya/’
msg.payload = ‘<v:Envelope xmlns:i=“http://XXXX/2001/XMLSchema-instance” xmlns:d=“http://XXXXX/2001/XMLSchema” xmlns:c=“http://schemas.xmlsoap.org/soap/encoding/” xmlns:v=“http://schemas.xmlsoap.org/soap/envelope/ 1”><v:Header /><v:Body>{“Id”:XXX2,“Password”:“XXXX2”}</v:Body></v:Envelope>’