# Preparations
1. in the `/index.php` file replace `$application->Run();` line with this:
```
lang=php
define('DBG_SKIP_REPORTING', 1);
echo $application->HREF('platform/my_account/my_account') . PHP_EOL;
```
2. create `/test.http` file with this content (replace `path/to/in-portal/` with domain & path to In-Portal installation, but **keep protocol as-is**):
```
### HTTPS to HTTP
GET https://path/to/in-portal/
Nginx-Proto: http
### HTTPS to HTTP
GET http://path/to/in-portal/
Nginx-Proto: http
### HTTP to HTTPS
GET http://path/to/in-portal/
Nginx-Proto: https
### HTTPS to HTTPS
GET https://path/to/in-portal/
Nginx-Proto: https
### As-is HTTP
GET http://path/to/in-portal/
### As-is HTTPS
GET https://path/to/in-portal/
```
# Test
# open `/test.http` file in the PhpStorm
# run each of 6 tests (each will output the URL to the My Account page)
# confirm, that:
* tests that have a `Nginx-Proto` header would use the provided protocol in the resulting URL
* tests that don't have a `Nginx-Proto` header would use protocol from the visited URL in the resulting URL