feat(libSceHttp): implement request header removal stub #9417

Merged
MarcZX10 merged 1 commit from upstream-pr/9417 into main 2026-10-22 23:58:37 +00:00
MarcZX10 commented 2026-10-21 21:14:10 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-21T21:14:10Z.


What

Implements the sceHttpRemoveRequestHeader(int id, const char* name) export using the signature in VitaSDK's HTTP header. The offline HTTP backend already accepts and discards request headers in sceHttpAddRequestHeader and never sends requests, so removal follows that behavior. The remaining signature-validation and error behavior on PS5 are recorded as unverified.

Tested

Linux: cmake --build /tmp/AnyPS5-http-remove-header-build --target guest_http_options_tests --parallel 4 passed. ctest --test-dir /tmp/AnyPS5-http-remove-header-build -R '^guest_http_options$' --output-on-failure could not execute the test: this host's Intel Xeon E5-1620 v2 lacks AVX2, FMA, BMI1, BMI2, LZCNT and MOVBE required by AnyPS5. python3 tools/check_conventions.py --base upstream/main, python3 tools/pr_overlap.py --branch feat/http-remove-request-header, and git diff --check passed. No PS5 hardware run.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4958449610 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9417). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-21T21:14:10Z. --- ### What Implements the `sceHttpRemoveRequestHeader(int id, const char* name)` export using the signature in VitaSDK's HTTP header. The offline HTTP backend already accepts and discards request headers in `sceHttpAddRequestHeader` and never sends requests, so removal follows that behavior. The remaining signature-validation and error behavior on PS5 are recorded as unverified. ### Tested Linux: `cmake --build /tmp/AnyPS5-http-remove-header-build --target guest_http_options_tests --parallel 4` passed. `ctest --test-dir /tmp/AnyPS5-http-remove-header-build -R '^guest_http_options$' --output-on-failure` could not execute the test: this host's Intel Xeon E5-1620 v2 lacks AVX2, FMA, BMI1, BMI2, LZCNT and MOVBE required by AnyPS5. `python3 tools/check_conventions.py --base upstream/main`, `python3 tools/pr_overlap.py --branch feat/http-remove-request-header`, and `git diff --check` passed. No PS5 hardware run. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-21 21:15:22 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-21T21:15:22Z.


Progress report (8b3e398 → 13eea0a)

📈 System libraries: 43.24% (+0.01%, +1 implemented functions)

✅ 1 implemented
Library Name
libSceHttp sceHttpRemoveRequestHeader
⚪ 1 behaviourally empty (constant return or throw)
Library Name
libSceHttp sceHttpRemoveRequestHeader
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6326719682 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9417#issuecomment-6326719682). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-21T21:15:22Z. --- <!-- progress-report --> ### Progress report (8b3e398 → 13eea0a) 📈 **System libraries**: 43.24% (+0.01%, +1 implemented functions) <details> <summary>✅ 1 implemented</summary> | Library | Name | | - | - | | libSceHttp | `sceHttpRemoveRequestHeader` | </details> <details> <summary>⚪ 1 behaviourally empty (constant return or throw)</summary> | Library | Name | | - | - | | libSceHttp | `sceHttpRemoveRequestHeader` | </details>
jotitadev commented 2026-10-21 23:34:05 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-21T23:34:05Z.

Review: COMMENTED


First execution of this test. The description notes the author's Linux host lacks AVX2, so ctest could not run there; this is the first actual run of guest_http_options for this change.

Machine: Linux x86_64, i7-8700 (6 cores / 12 threads), Ubuntu 26.04, GCC 15.2, Release, BUILD_TESTING=ON, full build. Head 151a46c52 (a rebase of the validated 9c5765768 onto main a6dcea927, same diff). Validated at 9c5765768 merged onto main 0c6a5bd59.

  • Build ok. guest_http_options passes.
  • Restoring libSceHttp/Export.cpp to main and keeping the test aborts it with sceHttpRemoveRequestHeader not implemented, so the test covers the change.

Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5607512444 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9417#pullrequestreview-5607512444). Originally posted by [jotitadev](https://github.com/jotitadev) on 2026-10-21T23:34:05Z. **Review:** COMMENTED --- First execution of this test. The description notes the author's Linux host lacks AVX2, so `ctest` could not run there; this is the first actual run of `guest_http_options` for this change. Machine: Linux x86_64, i7-8700 (6 cores / 12 threads), Ubuntu 26.04, GCC 15.2, Release, `BUILD_TESTING=ON`, full build. Head `151a46c52` (a rebase of the validated `9c5765768` onto `main` `a6dcea927`, same diff). Validated at `9c5765768` merged onto `main` `0c6a5bd59`. - Build ok. `guest_http_options` passes. - Restoring `libSceHttp/Export.cpp` to `main` and keeping the test aborts it with `sceHttpRemoveRequestHeader not implemented`, so the test covers the change. Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!9417
No description provided.