Commit Graph

71 Commits

Author SHA1 Message Date
Henrik Rydgård c686d48268 Add prototype Upload screen and a couple new icons. Some refactoring. 2025-10-27 12:20:20 +01:00
Henrik Rydgård d43b1d4618 String function cleanup 2025-08-31 14:45:41 +02:00
Henrik Rydgård f31a8f08ec HTTP error logging fixes 2025-08-15 18:08:41 +02:00
Henrik Rydgård 05b82d6ce4 Allow passing in a custom resolver to HTTPRequest and Connection. This inverts the bad dependency. 2025-08-06 00:16:34 +02:00
trigger 65d780b160 move ProcessHostnameWithInfraDNS out of sceNet 2025-07-31 13:03:57 -07:00
trigger 787cd9b119 infra dns for http requests 2025-07-27 17:47:36 -07:00
Henrik Rydgård ccf814bcd0 Some shutdown logging improvements 2025-01-28 13:32:31 +01:00
Henrik Rydgård 7f877bb16b Implement simple file caching. 2025-01-23 13:28:51 +01:00
Henrik Rydgård e4d08407ab Add fake request class for cached responses. 2025-01-23 13:02:06 +01:00
Henrik Rydgård eb719c43e8 HTTP: Replace ProgressBarMode with a new RequestFlags enum 2025-01-23 12:09:56 +01:00
Henrik Rydgård 12adad0494 HTTP request classes code cleanup - move common things up to the base class 2025-01-23 10:16:51 +01:00
Henrik Rydgård c3aa0f7452 Centralize socket-related includes, introduce socket_errno
This resolves some weird inconsistentes and include order problems
related to errno. Needed for the next steps.
2025-01-08 12:42:45 +01:00
Henrik Rydgård baf6bcc41e Hide the "Not supported" notice. Minor cleanups 2025-01-08 09:24:32 +01:00
AdamN f77f3016b7 Add the new DNS config settings, make use of them in NetApctl_InitInfo 2025-01-06 14:38:57 +01:00
AdamN 98dba643f4 Just the sceUtility changes from ANR2ME's branch 2025-01-06 14:38:45 +01:00
Henrik Rydgård 70042e0906 Add comment 2025-01-05 20:43:29 +01:00
ANR2ME f500726762 Changing httpCode to statusLine 2025-01-05 19:24:09 +01:00
ANR2ME 0012818eb7 Implement sceHttp library 2025-01-05 19:14:15 +01:00
Henrik Rydgård 59a56d66c7 Add a "reason" argument to sleep_ms().
sleep_ms() should generally be avoided when possible. This can be used to try
to track down unnecessary sleeps by adding some logging.

This commit on its own doesn't actually add any logging.
2024-11-21 15:28:51 +01:00
Henrik Rydgård 4d6905672e Bunch more linting 2024-10-10 11:57:10 +02:00
Henrik Rydgård e0c12c9547 More lint warning fixes 2024-10-10 10:52:45 +02:00
Henrik Rydgård e01ca5b057 Logging API change (refactor) (#19324)
* Rename LogType to Log

* Explicitly use the Log:: enum when logging. Allows for autocomplete when editing.

* Mac/ARM64 buildfix

* Do the same with the hle result log macros

* Rename the log names to mixed case while at it.

* iOS buildfix

* Qt buildfix attempt, ARM32 buildfix
2024-07-14 14:42:59 +02:00
Henrik Rydgård 5b717cab04 HTTPClient: Fix issue with HTTP redirects 2024-05-28 11:16:10 +02:00
Henrik Rydgård c5791764d8 Make the i18n T function use std::string_view
Buildfixes, crashfixes

One more

Android buildfix

Buildfix Qt
2024-02-12 18:44:39 +01:00
Henrik Rydgård deffbea75f HTTPClient: Fix socket leak on connect failure 2024-01-23 11:05:03 +01:00
Henrik Rydgård e6bc3d83f8 Logging improvement 2023-12-29 11:44:22 +01:00
Henrik Rydgård 2160abb5ec Web server: Send 404 as appropriate 2023-12-29 11:21:14 +01:00
Henrik Rydgård 546f9d7743 Some cleanups and fixes to obscure crashes 2023-09-24 13:05:25 +02:00
Unknown W. Brackets 4a2cd1bb7b http: Fix errors on connect. 2023-09-23 13:05:01 -07:00
Henrik Rydgård 388a34cdf1 HTTPClient: On Windows, we have to permit connect to "fail" with an errno of 0. Wacky. 2023-09-17 22:40:29 +02:00
Henrik Rydgård 33ab45557a remove redundant log 2023-09-17 17:39:17 +02:00
Henrik Rydgård 377892bc22 Improve logging 2023-09-17 17:37:45 +02:00
Henrik Rydgård 24bc0b067b Don't leak the sockets that won't connect 2023-09-17 17:23:58 +02:00
Henrik Rydgård 0421607c00 Fix HTTP connect on linux (need to ignore failed connections in the select) 2023-09-17 17:19:24 +02:00
Henrik Rydgård 6d28ccbd8e Add HTTP log channel, and make ACHIEVEMENTS a proper one. 2023-08-25 13:53:46 +02:00
Henrik Rydgård 0afd313371 Merge pull request #17770 from unknownbrackets/http-proxy-hang
http: Fix hang on early close
2023-07-23 23:56:07 +02:00
Unknown W. Brackets f70030fa5b http: Fix hang on early close. 2023-07-23 14:31:43 -07:00
Henrik Rydgård eb14c87a71 Allow configuring the game language separately from the PPSSPP UI language, with a new setting. 2023-07-23 11:30:04 +02:00
Henrik Rydgård 93bb113009 Common: Rename Download to Request, and the old Request to ServerRequest. 2023-07-21 22:12:00 +02:00
Henrik Rydgård 9535b16740 Use the patched naett functions to implement progress updates 2023-07-21 18:23:33 +02:00
Henrik Rydgård fbd980bee6 Get basic Naett requests to work (the store works in https mode) 2023-07-21 10:28:17 +02:00
Henrik Rydgård f13a07f19b Break out Download and RequestManager into its own file 2023-07-21 10:27:40 +02:00
Henrik Rydgård 64eff0dc0b Insert a virtual base class for Download 2023-07-21 10:27:40 +02:00
Henrik Rydgård 370bb4c315 More progressbar improvements 2023-07-18 15:52:14 +02:00
Henrik Rydgård ecea3844b0 Improved progress bar popups for downloads
Now shows the filename, and also there's a delay mode where they'll only
be visible if the download takes more than a second, plus they can be
named.
2023-07-18 15:13:44 +02:00
Henrik Rydgård 84d9b7e75d HTTP user agent plumbing 2023-07-14 15:24:34 +02:00
Henrik Rydgård 31a6cecef9 Allow specifying content-type for posts instead of hardcoding. 2023-06-17 23:18:23 +02:00
Henrik Rydgård 71cb766393 Fix re-entrancy issue in Downloader 2023-06-17 23:18:23 +02:00
Henrik Rydgård 3bc2aaf7ca Set MIME type "correctly" (at least for retro purposes) for POSTs 2023-06-17 23:18:23 +02:00
Henrik Rydgård 601e767e3b HTTPClient: Generalize Download to support GET and POST 2023-06-17 23:18:23 +02:00