I'm going to use PHP to simulate logging on to the intranet TFS, and then update the task regularly. now, the first step is to simulate logging on to TFS, but use firefox to try to capture the login data packet, however, you cannot see the GET or POST fields. For example, when you open this page, the login box will pop up: This is filled in...
I'm going to use PHP to simulate logging on to the intranet TFS, and then update the task regularly. now, the first step is to simulate logging on to TFS, but use firefox to try to capture the login data packet, however, you cannot see the GET or POST fields.
For example, if you open this webpage, the login box will pop up:
The password is entered, but no POST or GET content can be found. please give me some advice!
Reply content:
I'm going to use PHP to simulate logging on to the intranet TFS, and then update the task regularly. now, the first step is to simulate logging on to TFS, but use firefox to try to capture the login data packet, however, you cannot see the GET or POST fields.
For example, if you open this webpage, the login box will pop up:
The password is entered, but no POST or GET content can be found. please give me some advice!
This is HTTP Basic Authorization, not GET or POST.
Add when requestingAuthorizationHeader, value:"Basic" + base64_encode (username + ':' + password)
PHP code
$curl = curl_init();curl_setopt($curl, CURLOPT_URL, $url);curl_setopt($curl, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);curl_setopt($curl, CURLOPT_USERPWD, "[$username]:[$password]");
This is not a common get or post
This is http authentication.
Https://segmentfault.com/a/11...
Enter the user name and password, and then confirm that the data packet for this interaction will contain the post or get field name and value.