Home > Software engineering >  How do I realize VB call with webservice log in function and save cookies
How do I realize VB call with webservice log in function and save cookies

Time:10-04

Write a Java web service, there is a login function and save function, to achieve using VB to call the login, pass the username and password, after successful return value to save cookies, and then call the save function,
Online writing with soap toolkit, call the login no problem, can return to the correct values, but save function called return error message not login, webservice call instructions in c # example, use new cookiecontainer () can, don't know how the VB to achieve? Pray god to help, very urgent, is not to add,

CodePudding user response:

Curious, you can post some code

CodePudding user response:

Network to submit? You can use the winHTTP or XMLHTTP.

CodePudding user response:

VB is the most simple, if you use the XMLHTTP, direct write a cookie in the request header:
XMLHTTP. SetRequestHeader "Cookie", your cookies
  • Related