Difference in View Source

Added by राही अखेराजोत over 1 year ago

This url sends diffent html in View Source activity.

When I opened this url in a tab, the page content was It works, but when I opened it in View Source, the html content was
<html><head><title>Request Rejected</title></head><body>The requested URL was rejected. Please consult with your administrator.<br><br>Your support ID is: ₹₹₹₹₹₹₹₹₹₹₹₹<br><br><a href='javascript:history.back();'>[Go Back]</a></body></html>
which does not contain It works, therefore the view source request is not similar to webview request and I am getting different data while checking its source.

Replies (1)

RE: Difference in View Source - Added by Soren Stoutner over 1 year ago

This relates to Android's WebView does not provide a mechanism to display the source, so currently Privacy Browser makes a separate, direct network request to produce the source. However, as noted in the View Source about dialog, sometimes this results in different information (see With Null X-Requested-With Header screenshot).

Privacy Browser 3.11 included an option to change the X-Requested-With behavior, but this change didn't propagate to View Source. With Privacy Browser 3.12, which will be released within a couple of days, the way this header is handled will change again (see and the header has been completely removed from View Source, which causes it to receive the It Works body (see screenshot).