1
0
mirror of synced 2025-12-23 21:07:12 -05:00
Files
docs/data/reusables/codespaces/using-tools-to-access-ports-2.md
2023-07-21 10:08:20 +00:00

911 B

Using curl to access a forwarded port

In a terminal on your local computer, enter:

curl ADDRESS -H "X-Github-Token: TOKEN"

Replace ADDRESS and TOKEN with the values you copied previously.

Using Postman to access a forwarded port

  1. Open Postman.

  2. Create a new GET request.

  3. Paste the address you copied previously as the request URL.

    Screenshot of the URL for the forwarded port, pasted into Postman as the GET request URL. The URL is highlighted.

  4. In the Headers tab, create a new entry where the key is "X-Github-Token" and the value is the GITHUB_TOKEN you copied previously.

    Screenshot of a dummy GITHUB_TOKEN, pasted into Postman as the value of the X-GitHub-Token key. The key and value are highlighted.

  5. Click Send.