Really do not know how to go to the simulation login this URL, with Firefox did not catch get data

Source: Internet
Author: User

I'm going to use PHP to simulate the log in to the intranet TFS, and then regularly to update the next task, now the first step, the simulation login to TFS, but with Firefox to try to catch the login packet, but is not see the GET or post fields.
If you open this page, the login box will pop up:

This is filled in the account password, but can not find where is the post or get content, please point out!

Reply content:

I'm going to use PHP to simulate the log in to the intranet TFS, and then regularly to update the next task, now the first step, the simulation login to TFS, but with Firefox to try to catch the login packet, but is not see the GET or post fields.
If you open this page, the login box will pop up:

This is filled in the account password, but can not find where is the post or get content, please point out!

This is HTTP Basic Authorization, not get or post

Add Authorization Header when requested, 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 normal get or post
This is the HTTP authentication

HTTPS://SEGMENTFAULT.COM/A/11 ...

Fill in the user name and password, and then determine, to crawl this interaction of the packet, there will be a post or get field names and values

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.