|
PSPSDK 2025-10-12
|

Go to the source code of this file.
Typedefs | |
| typedef void *(* | PspHttpMallocFunction) (SceSize size) |
| typedef void *(* | PspHttpReallocFunction) (void *p, SceSize size) |
| typedef void(* | PspHttpFreeFunction) (void *p) |
| typedef int(* | PspHttpPasswordCB) (int request, PspHttpAuthType auth_type, const unsigned char *realm, unsigned char *username, unsigned char *password, SceBool need_entity, unsigned char **entity_body, SceSize *entity_size, SceBool *save) |
Enumerations | |
| enum | PspHttpHttpVersion { PSP_HTTP_VERSION_1_0 , PSP_HTTP_VERSION_1_1 } |
| enum | PspHttpMethod { PSP_HTTP_METHOD_GET , PSP_HTTP_METHOD_POST , PSP_HTTP_METHOD_HEAD } |
| enum | PspHttpAuthType { PSP_HTTP_AUTH_BASIC , PSP_HTTP_AUTH_DIGEST } |
| enum | PspHttpProxyMode { PSP_HTTP_PROXY_AUTO , PSP_HTTP_PROXY_MANUAL } |
| enum | PspHttpAddHeaderMode { PSP_HTTP_HEADER_OVERWRITE , PSP_HTTP_HEADER_ADD } |
Functions | |
| int | sceHttpInit (unsigned int unknown1) |
| Init the http library. | |
| int | sceHttpEnd (void) |
| Terminate the http library. | |
| int | sceHttpCreateTemplate (char *agent, int unknown1, int unknown2) |
| Create a http template. | |
| int | sceHttpDeleteTemplate (int templateid) |
| Delete a http template. | |
| int | sceHttpCreateConnection (int templateid, char *host, char *unknown1, unsigned short port, int unknown2) |
| Create a http connection. | |
| int | sceHttpCreateConnectionWithURL (int templateid, const char *url, int unknown1) |
| Create a http connection to a url. | |
| int | sceHttpDeleteConnection (int connectionid) |
| Delete a http connection. | |
| int | sceHttpCreateRequest (int connectionid, PspHttpMethod method, char *path, SceULong64 contentlength) |
| Create a http request. | |
| int | sceHttpCreateRequestWithURL (int connectionid, PspHttpMethod method, char *url, SceULong64 contentlength) |
| Create a http request with url. | |
| int | sceHttpDeleteRequest (int requestid) |
| Delete a http request. | |
| int | sceHttpSendRequest (int requestid, void *data, unsigned int datasize) |
| Send a http request. | |
| int | sceHttpAbortRequest (int requestid) |
| Abort a http request. | |
| int | sceHttpReadData (int requestid, void *data, unsigned int datasize) |
| Read a http request response. | |
| int | sceHttpGetContentLength (int requestid, SceULong64 *contentlength) |
| Get http request response length. | |
| int | sceHttpGetStatusCode (int requestid, int *statuscode) |
| Get http request status code. | |
| int | sceHttpSetResolveTimeOut (int id, unsigned int timeout) |
| Set resolver timeout. | |
| int | sceHttpSetResolveRetry (int id, int count) |
| Set resolver retry. | |
| int | sceHttpSetConnectTimeOut (int id, unsigned int timeout) |
| Set connect timeout. | |
| int | sceHttpSetSendTimeOut (int id, unsigned int timeout) |
| Set send timeout. | |
| int | sceHttpSetRecvTimeOut (int id, unsigned int timeout) |
| Set receive timeout. | |
| int | sceHttpEnableKeepAlive (int id) |
| Enable keep alive. | |
| int | sceHttpDisableKeepAlive (int id) |
| Disable keep alive. | |
| int | sceHttpEnableRedirect (int id) |
| Enable redirect. | |
| int | sceHttpDisableRedirect (int id) |
| Disable redirect. | |
| int | sceHttpEnableCookie (int id) |
| Enable cookie. | |
| int | sceHttpDisableCookie (int id) |
| Disable cookie. | |
| int | sceHttpSaveSystemCookie (void) |
| Save cookie. | |
| int | sceHttpLoadSystemCookie (void) |
| Load cookie. | |
| int | sceHttpAddExtraHeader (int id, char *name, char *value, int unknown1) |
| Add content header. | |
| int | sceHttpDeleteHeader (int id, const char *name) |
| Delete content header. | |
| int | sceHttpsInit (int unknown1, int unknown2, int unknown3, int unknown4) |
| Init the https library. | |
| int | sceHttpsEnd (void) |
| Terminate the https library. | |
| int | sceHttpsLoadDefaultCert (int unknown1, int unknown2) |
| Load default certificate. | |
| int | sceHttpDisableAuth (int id) |
| int | sceHttpDisableCache (int id) |
| int | sceHttpEnableAuth (int id) |
| int | sceHttpEnableCache (int id) |
| int | sceHttpEndCache (void) |
| int | sceHttpGetAllHeader (int request, unsigned char **header, unsigned int *header_size) |
| int | sceHttpGetNetworkErrno (int request, int *err_num) |
| int | sceHttpGetProxy (int id, int *activate_flag, int *mode, unsigned char *proxy_host, SceSize len, unsigned short *proxy_port) |
| int | sceHttpInitCache (SceSize max_size) |
| int | sceHttpSetAuthInfoCB (int id, PspHttpPasswordCB cbfunc) |
| int | sceHttpSetProxy (int id, int activate_flag, int mode, const unsigned char *new_proxy_host, unsigned short new_proxy_port) |
| int | sceHttpSetResHeaderMaxSize (int id, unsigned int header_size) |
| int | sceHttpSetMallocFunction (PspHttpMallocFunction malloc_func, PspHttpFreeFunction free_func, PspHttpReallocFunction realloc_func) |
| typedef void(* PspHttpFreeFunction) (void *p) |
| typedef void *(* PspHttpMallocFunction) (SceSize size) |
| typedef int(* PspHttpPasswordCB) (int request, PspHttpAuthType auth_type, const unsigned char *realm, unsigned char *username, unsigned char *password, SceBool need_entity, unsigned char **entity_body, SceSize *entity_size, SceBool *save) |
| typedef void *(* PspHttpReallocFunction) (void *p, SceSize size) |
| enum PspHttpAddHeaderMode |
| enum PspHttpAuthType |
| enum PspHttpHttpVersion |
| enum PspHttpMethod |
| enum PspHttpProxyMode |
| int sceHttpAbortRequest | ( | int | requestid | ) |
Abort a http request.
| requestid | - ID of the request created by sceHttpCreateRequest or sceHttpCreateRequestWithURL |
| int sceHttpAddExtraHeader | ( | int | id, |
| char * | name, | ||
| char * | value, | ||
| int | unknown1 ) |
Add content header.
| id | - ID of the template, connection or request |
| name | - Name of the content |
| value | - Value of the content |
| unknown1 | - Pass 0 |
| int sceHttpCreateConnection | ( | int | templateid, |
| char * | host, | ||
| char * | unknown1, | ||
| unsigned short | port, | ||
| int | unknown2 ) |
Create a http connection.
| templateid | - ID of the template created by sceHttpCreateTemplate |
| host | - Host to connect to |
| unknown1 | - Pass "http" |
| port | - Port to connect on |
| unknown2 | - Pass 0 |
| int sceHttpCreateConnectionWithURL | ( | int | templateid, |
| const char * | url, | ||
| int | unknown1 ) |
Create a http connection to a url.
| templateid | - ID of the template created by sceHttpCreateTemplate |
| url | - url to connect to |
| unknown1 | - Pass 0 |
| int sceHttpCreateRequest | ( | int | connectionid, |
| PspHttpMethod | method, | ||
| char * | path, | ||
| SceULong64 | contentlength ) |
Create a http request.
| connectionid | - ID of the connection created by sceHttpCreateConnection or sceHttpCreateConnectionWithURL |
| method | - One of PspHttpMethod |
| path | - Path to access |
| contentlength | - Length of the content (POST method only) |
| int sceHttpCreateRequestWithURL | ( | int | connectionid, |
| PspHttpMethod | method, | ||
| char * | url, | ||
| SceULong64 | contentlength ) |
Create a http request with url.
| connectionid | - ID of the connection created by sceHttpCreateConnection or sceHttpCreateConnectionWithURL |
| method | - One of PspHttpMethod |
| url | - url to access |
| contentlength | - Length of the content (POST method only) |
| int sceHttpCreateTemplate | ( | char * | agent, |
| int | unknown1, | ||
| int | unknown2 ) |
Create a http template.
| agent | - User agent |
| unknown1 | - Pass 1 |
| unknown2 | - Pass 0 |
| int sceHttpDeleteConnection | ( | int | connectionid | ) |
Delete a http connection.
| connectionid | - ID of the connection created by sceHttpCreateConnection or sceHttpCreateConnectionWithURL |
| int sceHttpDeleteHeader | ( | int | id, |
| const char * | name ) |
Delete content header.
| id | - ID of the template, connection or request |
| name | - Name of the content |
| int sceHttpDeleteRequest | ( | int | requestid | ) |
Delete a http request.
| requestid | - ID of the request created by sceHttpCreateRequest or sceHttpCreateRequestWithURL |
| int sceHttpDeleteTemplate | ( | int | templateid | ) |
Delete a http template.
| templateid | - ID of the template created by sceHttpCreateTemplate |
| int sceHttpDisableAuth | ( | int | id | ) |
| int sceHttpDisableCache | ( | int | id | ) |
| int sceHttpDisableCookie | ( | int | id | ) |
Disable cookie.
| id | - ID of the template or connection |
| int sceHttpDisableKeepAlive | ( | int | id | ) |
Disable keep alive.
| id | - ID of the template or connection |
| int sceHttpDisableRedirect | ( | int | id | ) |
Disable redirect.
| id | - ID of the template or connection |
| int sceHttpEnableAuth | ( | int | id | ) |
| int sceHttpEnableCache | ( | int | id | ) |
| int sceHttpEnableCookie | ( | int | id | ) |
Enable cookie.
| id | - ID of the template or connection |
| int sceHttpEnableKeepAlive | ( | int | id | ) |
Enable keep alive.
| id | - ID of the template or connection |
| int sceHttpEnableRedirect | ( | int | id | ) |
Enable redirect.
| id | - ID of the template or connection |
| int sceHttpEnd | ( | void | ) |
Terminate the http library.
| int sceHttpEndCache | ( | void | ) |
| int sceHttpGetAllHeader | ( | int | request, |
| unsigned char ** | header, | ||
| unsigned int * | header_size ) |
| int sceHttpGetContentLength | ( | int | requestid, |
| SceULong64 * | contentlength ) |
Get http request response length.
| requestid | - ID of the request created by sceHttpCreateRequest or sceHttpCreateRequestWithURL |
| contentlength | - The size of the content |
| int sceHttpGetNetworkErrno | ( | int | request, |
| int * | err_num ) |
| int sceHttpGetProxy | ( | int | id, |
| int * | activate_flag, | ||
| int * | mode, | ||
| unsigned char * | proxy_host, | ||
| SceSize | len, | ||
| unsigned short * | proxy_port ) |
| int sceHttpGetStatusCode | ( | int | requestid, |
| int * | statuscode ) |
Get http request status code.
| requestid | - ID of the request created by sceHttpCreateRequest or sceHttpCreateRequestWithURL |
| statuscode | - The status code from the host (200 is ok, 404 is not found etc) |
| int sceHttpInit | ( | unsigned int | unknown1 | ) |
Init the http library.
| unknown1 | - Memory pool size? Pass 20000 |
| int sceHttpInitCache | ( | SceSize | max_size | ) |
| int sceHttpLoadSystemCookie | ( | void | ) |
Load cookie.
| int sceHttpReadData | ( | int | requestid, |
| void * | data, | ||
| unsigned int | datasize ) |
Read a http request response.
| requestid | - ID of the request created by sceHttpCreateRequest or sceHttpCreateRequestWithURL |
| data | - Buffer for the response data to be stored |
| datasize | - Size of the buffer |
| int sceHttpSaveSystemCookie | ( | void | ) |
Save cookie.
| int sceHttpsEnd | ( | void | ) |
Terminate the https library.
| int sceHttpSendRequest | ( | int | requestid, |
| void * | data, | ||
| unsigned int | datasize ) |
Send a http request.
| requestid | - ID of the request created by sceHttpCreateRequest or sceHttpCreateRequestWithURL |
| data | - For POST methods specify a pointer to the post data, otherwise pass NULL |
| datasize | - For POST methods specify the size of the post data, otherwise pass 0 |
| int sceHttpSetAuthInfoCB | ( | int | id, |
| PspHttpPasswordCB | cbfunc ) |
| int sceHttpSetConnectTimeOut | ( | int | id, |
| unsigned int | timeout ) |
Set connect timeout.
| id | - ID of the template, connection or request |
| timeout | - Timeout value in microseconds |
| int sceHttpSetMallocFunction | ( | PspHttpMallocFunction | malloc_func, |
| PspHttpFreeFunction | free_func, | ||
| PspHttpReallocFunction | realloc_func ) |
| int sceHttpSetProxy | ( | int | id, |
| int | activate_flag, | ||
| int | mode, | ||
| const unsigned char * | new_proxy_host, | ||
| unsigned short | new_proxy_port ) |
| int sceHttpSetRecvTimeOut | ( | int | id, |
| unsigned int | timeout ) |
Set receive timeout.
| id | - ID of the template or connection |
| timeout | - Timeout value in microseconds |
| int sceHttpSetResHeaderMaxSize | ( | int | id, |
| unsigned int | header_size ) |
| int sceHttpSetResolveRetry | ( | int | id, |
| int | count ) |
Set resolver retry.
| id | - ID of the template or connection |
| count | - Number of retries |
| int sceHttpSetResolveTimeOut | ( | int | id, |
| unsigned int | timeout ) |
Set resolver timeout.
| id | - ID of the template or connection |
| timeout | - Timeout value in microseconds |
| int sceHttpSetSendTimeOut | ( | int | id, |
| unsigned int | timeout ) |
Set send timeout.
| id | - ID of the template, connection or request |
| timeout | - Timeout value in microseconds |
| int sceHttpsInit | ( | int | unknown1, |
| int | unknown2, | ||
| int | unknown3, | ||
| int | unknown4 ) |
Init the https library.
| unknown1 | - Pass 0 |
| unknown2 | - Pass 0 |
| unknown3 | - Pass 0 |
| unknown4 | - Pass 0 |
| int sceHttpsLoadDefaultCert | ( | int | unknown1, |
| int | unknown2 ) |
Load default certificate.
| unknown1 | - Pass 0 |
| unknown2 | - Pass 0 |