vitasdk
Documentation of the vitasdk

Detailed Description

Exports for User.


Using this library in your project

Include the header file in your project:


Link the library to the executable:

SceHttp_stub


Load the required module:

int sceSysmoduleLoadModule(SceSysmoduleModuleId id)
Load a module.
@ SCE_SYSMODULE_HTTP
HTTP module.
Definition: sysmodule.h:29



Functions

 VITASDK_BUILD_ASSERT_EQ (0x10, SceHttpMemoryPoolStats)
 
 VITASDK_BUILD_ASSERT_EQ (0x2C, SceHttpUriElement)
 
 VITASDK_BUILD_ASSERT_EQ (8, SceHttpsData)
 
 VITASDK_BUILD_ASSERT_EQ (8, SceHttpsCaList)
 
int sceHttpInit (unsigned int poolSize)
 
int sceHttpTerm (void)
 
int sceHttpGetMemoryPoolStats (SceHttpMemoryPoolStats *currentStat)
 
int sceHttpSetAuthInfoCallback (int id, SceHttpAuthInfoCallback cbfunc, void *userArg)
 
int sceHttpSetAuthEnabled (int id, int enable)
 
int sceHttpGetAuthEnabled (int id, int *enable)
 
int sceHttpSetRedirectCallback (int id, SceHttpRedirectCallback cbfunc, void *userArg)
 
int sceHttpSetAutoRedirect (int id, int enable)
 
int sceHttpGetAutoRedirect (int id, int *enable)
 
int sceHttpSetResolveTimeOut (int id, unsigned int usec)
 
int sceHttpSetResolveRetry (int id, int retry)
 
int sceHttpSetConnectTimeOut (int id, unsigned int usec)
 
int sceHttpSetSendTimeOut (int id, unsigned int usec)
 
int sceHttpSetRecvTimeOut (int id, unsigned int usec)
 
int sceHttpSendRequest (int reqId, const void *postData, unsigned int size)
 
int sceHttpAbortRequest (int reqId)
 
int sceHttpGetResponseContentLength (int reqId, unsigned long long int *contentLength)
 
int sceHttpGetStatusCode (int reqId, int *statusCode)
 
int sceHttpGetAllResponseHeaders (int reqId, char **header, unsigned int *headerSize)
 
int sceHttpReadData (int reqId, void *data, unsigned int size)
 
int sceHttpAddRequestHeader (int id, const char *name, const char *value, unsigned int mode)
 
int sceHttpRemoveRequestHeader (int id, const char *name)
 
int sceHttpParseResponseHeader (const char *header, unsigned int headerLen, const char *fieldStr, const char **fieldValue, unsigned int *valueLen)
 
int sceHttpParseStatusLine (const char *statusLine, unsigned int lineLen, int *httpMajorVer, int *httpMinorVer, int *responseCode, const char **reasonPhrase, unsigned int *phraseLen)
 
int sceHttpCreateTemplate (const char *userAgent, int httpVer, int autoProxyConf)
 
int sceHttpDeleteTemplate (int tmplId)
 
int sceHttpCreateConnection (int tmplId, const char *serverName, const char *scheme, unsigned short port, int enableKeepalive)
 
int sceHttpCreateConnectionWithURL (int tmplId, const char *url, int enableKeepalive)
 
int sceHttpDeleteConnection (int connId)
 
int sceHttpCreateRequest (int connId, int method, const char *path, unsigned long long int contentLength)
 
int sceHttpCreateRequestWithURL (int connId, int method, const char *url, unsigned long long int contentLength)
 
int sceHttpDeleteRequest (int reqId)
 
int sceHttpSetResponseHeaderMaxSize (int id, unsigned int headerSize)
 
int sceHttpSetRequestContentLength (int id, unsigned long long int contentLength)
 
int sceHttpUriEscape (char *out, unsigned int *require, unsigned int prepare, const char *in)
 
int sceHttpUriUnescape (char *out, unsigned int *require, unsigned int prepare, const char *in)
 
int sceHttpUriParse (SceHttpUriElement *out, const char *srcUrl, void *pool, unsigned int *require, unsigned int prepare)
 
int sceHttpUriBuild (char *out, unsigned int *require, unsigned int prepare, const SceHttpUriElement *srcElement, unsigned int option)
 
int sceHttpUriMerge (char *mergedUrl, const char *url, const char *relativeUrl, unsigned int *require, unsigned int prepare, unsigned int option)
 
int sceHttpUriSweepPath (char *dst, const char *src, unsigned int srcSize)
 
int sceHttpsLoadCert (int caCertNum, const SceHttpsData **caList, const SceHttpsData *cert, const SceHttpsData *privKey)
 Register RootCA certificate for HTTPS authentication. More...
 
int sceHttpsUnloadCert (void)
 
int sceHttpsEnableOption (unsigned int sslFlags)
 
int sceHttpsDisableOption (unsigned int sslFlags)
 
int sceHttpsGetSslError (int id, int *errNum, unsigned int *detail)
 
int sceHttpsSetSslCallback (int id, SceHttpsCallback cbfunc, void *userArg)
 
int sceHttpsGetCaList (SceHttpsCaList *caList)
 
int sceHttpsFreeCaList (SceHttpsCaList *caList)
 
int sceHttpSetCookieEnabled (int id, int enable)
 
int sceHttpGetCookieEnabled (int id, int *enable)
 
int sceHttpGetCookie (const char *url, char *cookie, unsigned int *cookieLength, unsigned int prepare, int secure)
 
int sceHttpAddCookie (const char *url, const char *cookie, unsigned int cookieLength)
 
int sceHttpSetCookieRecvCallback (int id, SceHttpCookieRecvCallback cbfunc, void *userArg)
 
int sceHttpSetCookieSendCallback (int id, SceHttpCookieSendCallback cbfunc, void *userArg)
 

Typedefs

typedef int(* SceHttpAuthInfoCallback) (int request, SceHttpAuthType authType, const char *realm, char *username, char *password, int needEntity, unsigned char **entityBody, unsigned int *entitySize, int *save, void *userArg)
 
typedef int(* SceHttpRedirectCallback) (int request, int statusCode, int *method, const char *location, void *userArg)
 
typedef int(* SceHttpsCallback) (unsigned int verifyEsrr, void *const sslCert[], int certNum, void *userArg)
 
typedef int(* SceHttpCookieRecvCallback) (int request, const char *url, const char *cookieHeader, unsigned int headerLen, void *userArg)
 
typedef int(* SceHttpCookieSendCallback) (int request, const char *url, const char *cookieHeader, void *userArg)
 

Macros

#define SCE_HTTP_DEFAULT_RESOLVER_TIMEOUT   (1 * 1000 * 1000U)
 
#define SCE_HTTP_DEFAULT_RESOLVER_RETRY   (5U)
 
#define SCE_HTTP_DEFAULT_CONNECT_TIMEOUT   (30* 1000 * 1000U)
 
#define SCE_HTTP_DEFAULT_SEND_TIMEOUT   (120* 1000 * 1000U)
 
#define SCE_HTTP_DEFAULT_RECV_TIMEOUT   (120* 1000 * 1000U)
 
#define SCE_HTTP_DEFAULT_RECV_BLOCK_SIZE   (1500U)
 
#define SCE_HTTP_DEFAULT_RESPONSE_HEADER_MAX   (5000U)
 
#define SCE_HTTP_DEFAULT_REDIRECT_MAX   (6U)
 
#define SCE_HTTP_DEFAULT_TRY_AUTH_MAX   (6U)
 
#define SCE_HTTP_INVALID_ID   0
 
#define SCE_HTTP_ENABLE   (1)
 
#define SCE_HTTP_DISABLE   (0)
 
#define SCE_HTTP_USERNAME_MAX_SIZE   256
 
#define SCE_HTTP_PASSWORD_MAX_SIZE   256
 

Data Structure Documentation

◆ SceHttpMemoryPoolStats

struct SceHttpMemoryPoolStats
Data Fields
unsigned int poolSize
unsigned int maxInuseSize
unsigned int currentInuseSize
int reserved

◆ SceHttpUriElement

struct SceHttpUriElement
Data Fields
int opaque
char * scheme
char * username
char * password
char * hostname
char * path
char * query
char * fragment
unsigned short port
unsigned char reserved[10]

◆ SceHttpsData

struct SceHttpsData
Data Fields
char * ptr
unsigned int size

◆ SceHttpsCaList

struct SceHttpsCaList
Data Fields
void ** caCerts
int caNum

Macro Definition Documentation

◆ SCE_HTTP_DEFAULT_RESOLVER_TIMEOUT

#define SCE_HTTP_DEFAULT_RESOLVER_TIMEOUT   (1 * 1000 * 1000U)

◆ SCE_HTTP_DEFAULT_RESOLVER_RETRY

#define SCE_HTTP_DEFAULT_RESOLVER_RETRY   (5U)

◆ SCE_HTTP_DEFAULT_CONNECT_TIMEOUT

#define SCE_HTTP_DEFAULT_CONNECT_TIMEOUT   (30* 1000 * 1000U)

◆ SCE_HTTP_DEFAULT_SEND_TIMEOUT

#define SCE_HTTP_DEFAULT_SEND_TIMEOUT   (120* 1000 * 1000U)

◆ SCE_HTTP_DEFAULT_RECV_TIMEOUT

#define SCE_HTTP_DEFAULT_RECV_TIMEOUT   (120* 1000 * 1000U)

◆ SCE_HTTP_DEFAULT_RECV_BLOCK_SIZE

#define SCE_HTTP_DEFAULT_RECV_BLOCK_SIZE   (1500U)

◆ SCE_HTTP_DEFAULT_RESPONSE_HEADER_MAX

#define SCE_HTTP_DEFAULT_RESPONSE_HEADER_MAX   (5000U)

◆ SCE_HTTP_DEFAULT_REDIRECT_MAX

#define SCE_HTTP_DEFAULT_REDIRECT_MAX   (6U)

◆ SCE_HTTP_DEFAULT_TRY_AUTH_MAX

#define SCE_HTTP_DEFAULT_TRY_AUTH_MAX   (6U)

◆ SCE_HTTP_INVALID_ID

#define SCE_HTTP_INVALID_ID   0

◆ SCE_HTTP_ENABLE

#define SCE_HTTP_ENABLE   (1)

◆ SCE_HTTP_DISABLE

#define SCE_HTTP_DISABLE   (0)

◆ SCE_HTTP_USERNAME_MAX_SIZE

#define SCE_HTTP_USERNAME_MAX_SIZE   256

◆ SCE_HTTP_PASSWORD_MAX_SIZE

#define SCE_HTTP_PASSWORD_MAX_SIZE   256

Typedef Documentation

◆ SceHttpAuthInfoCallback

typedef int(* SceHttpAuthInfoCallback) (int request, SceHttpAuthType authType, const char *realm, char *username, char *password, int needEntity, unsigned char **entityBody, unsigned int *entitySize, int *save, void *userArg)

◆ SceHttpRedirectCallback

typedef int(* SceHttpRedirectCallback) (int request, int statusCode, int *method, const char *location, void *userArg)

◆ SceHttpsCallback

typedef int(* SceHttpsCallback) (unsigned int verifyEsrr, void *const sslCert[], int certNum, void *userArg)

◆ SceHttpCookieRecvCallback

typedef int(* SceHttpCookieRecvCallback) (int request, const char *url, const char *cookieHeader, unsigned int headerLen, void *userArg)

◆ SceHttpCookieSendCallback

typedef int(* SceHttpCookieSendCallback) (int request, const char *url, const char *cookieHeader, void *userArg)

Enumeration Type Documentation

◆ SceHttpErrorCode

Enumerator
SCE_HTTP_ERROR_BEFORE_INIT 
SCE_HTTP_ERROR_ALREADY_INITED 
SCE_HTTP_ERROR_BUSY 
SCE_HTTP_ERROR_OUT_OF_MEMORY 
SCE_HTTP_ERROR_NOT_FOUND 
SCE_HTTP_ERROR_INVALID_VERSION 
SCE_HTTP_ERROR_INVALID_ID 
SCE_HTTP_ERROR_OUT_OF_SIZE 
SCE_HTTP_ERROR_INVALID_VALUE 
SCE_HTTP_ERROR_INVALID_URL 
SCE_HTTP_ERROR_UNKNOWN_SCHEME 
SCE_HTTP_ERROR_NETWORK 
SCE_HTTP_ERROR_BAD_RESPONSE 
SCE_HTTP_ERROR_BEFORE_SEND 
SCE_HTTP_ERROR_AFTER_SEND 
SCE_HTTP_ERROR_TIMEOUT 
SCE_HTTP_ERROR_UNKOWN_AUTH_TYPE 
SCE_HTTP_ERROR_UNKNOWN_METHOD 
SCE_HTTP_ERROR_READ_BY_HEAD_METHOD 
SCE_HTTP_ERROR_NOT_IN_COM 
SCE_HTTP_ERROR_NO_CONTENT_LENGTH 
SCE_HTTP_ERROR_CHUNK_ENC 
SCE_HTTP_ERROR_TOO_LARGE_RESPONSE_HEADER 
SCE_HTTP_ERROR_SSL 
SCE_HTTP_ERROR_ABORTED 
SCE_HTTP_ERROR_UNKNOWN 
SCE_HTTP_ERROR_PARSE_HTTP_NOT_FOUND 
SCE_HTTP_ERROR_PARSE_HTTP_INVALID_RESPONSE 
SCE_HTTP_ERROR_PARSE_HTTP_INVALID_VALUE 
SCE_HTTP_ERROR_RESOLVER_EPACKET 
SCE_HTTP_ERROR_RESOLVER_ENODNS 
SCE_HTTP_ERROR_RESOLVER_ETIMEDOUT 
SCE_HTTP_ERROR_RESOLVER_ENOSUPPORT 
SCE_HTTP_ERROR_RESOLVER_EFORMAT 
SCE_HTTP_ERROR_RESOLVER_ESERVERFAILURE 
SCE_HTTP_ERROR_RESOLVER_ENOHOST 
SCE_HTTP_ERROR_RESOLVER_ENOTIMPLEMENTED 
SCE_HTTP_ERROR_RESOLVER_ESERVERREFUSED 
SCE_HTTP_ERROR_RESOLVER_ENORECORD 

◆ SceHttpsErrorCode

Enumerator
SCE_HTTPS_ERROR_CERT 
SCE_HTTPS_ERROR_HANDSHAKE 
SCE_HTTPS_ERROR_IO 
SCE_HTTPS_ERROR_INTERNAL 
SCE_HTTPS_ERROR_PROXY 

◆ SceHttpsSslErrorCode

Enumerator
SCE_HTTPS_ERROR_SSL_INTERNAL 
SCE_HTTPS_ERROR_SSL_INVALID_CERT 
SCE_HTTPS_ERROR_SSL_CN_CHECK 
SCE_HTTPS_ERROR_SSL_NOT_AFTER_CHECK 
SCE_HTTPS_ERROR_SSL_NOT_BEFORE_CHECK 
SCE_HTTPS_ERROR_SSL_UNKNOWN_CA 

◆ SceHttpStatuscode

Enumerator
SCE_HTTP_STATUS_CODE_CONTINUE 
SCE_HTTP_STATUS_CODE_SWITCHING_PROTOCOLS 
SCE_HTTP_STATUS_CODE_PROCESSING 
SCE_HTTP_STATUS_CODE_OK 
SCE_HTTP_STATUS_CODE_CREATED 
SCE_HTTP_STATUS_CODE_ACCEPTED 
SCE_HTTP_STATUS_CODE_NON_AUTHORITATIVE_INFORMATION 
SCE_HTTP_STATUS_CODE_NO_CONTENT 
SCE_HTTP_STATUS_CODE_RESET_CONTENT 
SCE_HTTP_STATUS_CODE_PARTIAL_CONTENT 
SCE_HTTP_STATUS_CODE_MULTI_STATUS 
SCE_HTTP_STATUS_CODE_MULTIPLE_CHOICES 
SCE_HTTP_STATUS_CODE_MOVED_PERMANENTLY 
SCE_HTTP_STATUS_CODE_FOUND 
SCE_HTTP_STATUS_CODE_SEE_OTHER 
SCE_HTTP_STATUS_CODE_NOT_MODIFIED 
SCE_HTTP_STATUS_CODE_USE_PROXY 
SCE_HTTP_STATUS_CODE_TEMPORARY_REDIRECT 
SCE_HTTP_STATUS_CODE_BAD_REQUEST 
SCE_HTTP_STATUS_CODE_UNAUTHORIZED 
SCE_HTTP_STATUS_CODE_PAYMENT_REQUIRED 
SCE_HTTP_STATUS_CODE_FORBIDDDEN 
SCE_HTTP_STATUS_CODE_NOT_FOUND 
SCE_HTTP_STATUS_CODE_METHOD_NOT_ALLOWED 
SCE_HTTP_STATUS_CODE_NOT_ACCEPTABLE 
SCE_HTTP_STATUS_CODE_PROXY_AUTHENTICATION_REQUIRED 
SCE_HTTP_STATUS_CODE_REQUEST_TIME_OUT 
SCE_HTTP_STATUS_CODE_CONFLICT 
SCE_HTTP_STATUS_CODE_GONE 
SCE_HTTP_STATUS_CODE_LENGTH_REQUIRED 
SCE_HTTP_STATUS_CODE_PRECONDITION_FAILED 
SCE_HTTP_STATUS_CODE_REQUEST_ENTITY_TOO_LARGE 
SCE_HTTP_STATUS_CODE_REQUEST_URI_TOO_LARGE 
SCE_HTTP_STATUS_CODE_UNSUPPORTED_MEDIA_TYPE 
SCE_HTTP_STATUS_CODE_REQUEST_RANGE_NOT_SATISFIBLE 
SCE_HTTP_STATUS_CODE_EXPECTATION_FAILED 
SCE_HTTP_STATUS_CODE_UNPROCESSABLE_ENTITY 
SCE_HTTP_STATUS_CODE_LOCKED 
SCE_HTTP_STATUS_CODE_FAILED_DEPENDENCY 
SCE_HTTP_STATUS_CODE_UPGRADE_REQUIRED 
SCE_HTTP_STATUS_CODE_INTERNAL_SERVER_ERROR 
SCE_HTTP_STATUS_CODE_NOT_IMPLEMENTED 
SCE_HTTP_STATUS_CODE_BAD_GATEWAY 
SCE_HTTP_STATUS_CODE_SERVICE_UNAVAILABLE 
SCE_HTTP_STATUS_CODE_GATEWAY_TIME_OUT 
SCE_HTTP_STATUS_CODE_HTTP_VERSION_NOT_SUPPORTED 
SCE_HTTP_STATUS_CODE_INSUFFICIENT_STORAGE 

◆ SceHttpUriBuildType

Enumerator
SCE_HTTP_URI_BUILD_WITH_SCHEME 
SCE_HTTP_URI_BUILD_WITH_HOSTNAME 
SCE_HTTP_URI_BUILD_WITH_PORT 
SCE_HTTP_URI_BUILD_WITH_PATH 
SCE_HTTP_URI_BUILD_WITH_USERNAME 
SCE_HTTP_URI_BUILD_WITH_PASSWORD 
SCE_HTTP_URI_BUILD_WITH_QUERY 
SCE_HTTP_URI_BUILD_WITH_FRAGMENT 
SCE_HTTP_URI_BUILD_WITH_ALL 

◆ SceHttpsFlag

Enumerator
SCE_HTTPS_FLAG_SERVER_VERIFY 
SCE_HTTPS_FLAG_CLIENT_VERIFY 
SCE_HTTPS_FLAG_CN_CHECK 
SCE_HTTPS_FLAG_NOT_AFTER_CHECK 
SCE_HTTPS_FLAG_NOT_BEFORE_CHECK 
SCE_HTTPS_FLAG_KNOWN_CA_CHECK 

◆ SceHttpMethods

Enumerator
SCE_HTTP_METHOD_GET 
SCE_HTTP_METHOD_POST 
SCE_HTTP_METHOD_HEAD 
SCE_HTTP_METHOD_OPTIONS 
SCE_HTTP_METHOD_PUT 
SCE_HTTP_METHOD_DELETE 
SCE_HTTP_METHOD_TRACE 
SCE_HTTP_METHOD_CONNECT 

◆ SceHttpHttpVersion

Enumerator
SCE_HTTP_VERSION_1_0 
SCE_HTTP_VERSION_1_1 

◆ SceHttpProxyMode

Enumerator
SCE_HTTP_PROXY_AUTO 
SCE_HTTP_PROXY_MANUAL 

◆ SceHttpAddHeaderMode

Enumerator
SCE_HTTP_HEADER_OVERWRITE 
SCE_HTTP_HEADER_ADD 

◆ SceHttpAuthType

Enumerator
SCE_HTTP_AUTH_BASIC 
SCE_HTTP_AUTH_DIGEST 
SCE_HTTP_AUTH_RESERVED0 
SCE_HTTP_AUTH_RESERVED1 
SCE_HTTP_AUTH_RESERVED2 

◆ SceHttpSslVersion

Enumerator
SCE_HTTPS_SSLV23 
SCE_HTTPS_SSLV2 
SCE_HTTPS_SSLV3 
SCE_HTTPS_TLSV1 

Function Documentation

◆ VITASDK_BUILD_ASSERT_EQ() [1/4]

VITASDK_BUILD_ASSERT_EQ ( 0x10  ,
SceHttpMemoryPoolStats   
)

◆ VITASDK_BUILD_ASSERT_EQ() [2/4]

VITASDK_BUILD_ASSERT_EQ ( 0x2C  ,
SceHttpUriElement   
)

◆ VITASDK_BUILD_ASSERT_EQ() [3/4]

VITASDK_BUILD_ASSERT_EQ ( ,
SceHttpsData   
)

◆ VITASDK_BUILD_ASSERT_EQ() [4/4]

VITASDK_BUILD_ASSERT_EQ ( ,
SceHttpsCaList   
)

◆ sceHttpInit()

int sceHttpInit ( unsigned int  poolSize)

◆ sceHttpTerm()

int sceHttpTerm ( void  )

◆ sceHttpGetMemoryPoolStats()

int sceHttpGetMemoryPoolStats ( SceHttpMemoryPoolStats currentStat)

◆ sceHttpSetAuthInfoCallback()

int sceHttpSetAuthInfoCallback ( int  id,
SceHttpAuthInfoCallback  cbfunc,
void *  userArg 
)

◆ sceHttpSetAuthEnabled()

int sceHttpSetAuthEnabled ( int  id,
int  enable 
)

◆ sceHttpGetAuthEnabled()

int sceHttpGetAuthEnabled ( int  id,
int *  enable 
)

◆ sceHttpSetRedirectCallback()

int sceHttpSetRedirectCallback ( int  id,
SceHttpRedirectCallback  cbfunc,
void *  userArg 
)

◆ sceHttpSetAutoRedirect()

int sceHttpSetAutoRedirect ( int  id,
int  enable 
)

◆ sceHttpGetAutoRedirect()

int sceHttpGetAutoRedirect ( int  id,
int *  enable 
)

◆ sceHttpSetResolveTimeOut()

int sceHttpSetResolveTimeOut ( int  id,
unsigned int  usec 
)

◆ sceHttpSetResolveRetry()

int sceHttpSetResolveRetry ( int  id,
int  retry 
)

◆ sceHttpSetConnectTimeOut()

int sceHttpSetConnectTimeOut ( int  id,
unsigned int  usec 
)

◆ sceHttpSetSendTimeOut()

int sceHttpSetSendTimeOut ( int  id,
unsigned int  usec 
)

◆ sceHttpSetRecvTimeOut()

int sceHttpSetRecvTimeOut ( int  id,
unsigned int  usec 
)

◆ sceHttpSendRequest()

int sceHttpSendRequest ( int  reqId,
const void *  postData,
unsigned int  size 
)

◆ sceHttpAbortRequest()

int sceHttpAbortRequest ( int  reqId)

◆ sceHttpGetResponseContentLength()

int sceHttpGetResponseContentLength ( int  reqId,
unsigned long long int *  contentLength 
)

◆ sceHttpGetStatusCode()

int sceHttpGetStatusCode ( int  reqId,
int *  statusCode 
)

◆ sceHttpGetAllResponseHeaders()

int sceHttpGetAllResponseHeaders ( int  reqId,
char **  header,
unsigned int *  headerSize 
)

◆ sceHttpReadData()

int sceHttpReadData ( int  reqId,
void *  data,
unsigned int  size 
)

◆ sceHttpAddRequestHeader()

int sceHttpAddRequestHeader ( int  id,
const char *  name,
const char *  value,
unsigned int  mode 
)

◆ sceHttpRemoveRequestHeader()

int sceHttpRemoveRequestHeader ( int  id,
const char *  name 
)

◆ sceHttpParseResponseHeader()

int sceHttpParseResponseHeader ( const char *  header,
unsigned int  headerLen,
const char *  fieldStr,
const char **  fieldValue,
unsigned int *  valueLen 
)

◆ sceHttpParseStatusLine()

int sceHttpParseStatusLine ( const char *  statusLine,
unsigned int  lineLen,
int *  httpMajorVer,
int *  httpMinorVer,
int *  responseCode,
const char **  reasonPhrase,
unsigned int *  phraseLen 
)

◆ sceHttpCreateTemplate()

int sceHttpCreateTemplate ( const char *  userAgent,
int  httpVer,
int  autoProxyConf 
)

◆ sceHttpDeleteTemplate()

int sceHttpDeleteTemplate ( int  tmplId)

◆ sceHttpCreateConnection()

int sceHttpCreateConnection ( int  tmplId,
const char *  serverName,
const char *  scheme,
unsigned short  port,
int  enableKeepalive 
)

◆ sceHttpCreateConnectionWithURL()

int sceHttpCreateConnectionWithURL ( int  tmplId,
const char *  url,
int  enableKeepalive 
)

◆ sceHttpDeleteConnection()

int sceHttpDeleteConnection ( int  connId)

◆ sceHttpCreateRequest()

int sceHttpCreateRequest ( int  connId,
int  method,
const char *  path,
unsigned long long int  contentLength 
)

◆ sceHttpCreateRequestWithURL()

int sceHttpCreateRequestWithURL ( int  connId,
int  method,
const char *  url,
unsigned long long int  contentLength 
)

◆ sceHttpDeleteRequest()

int sceHttpDeleteRequest ( int  reqId)

◆ sceHttpSetResponseHeaderMaxSize()

int sceHttpSetResponseHeaderMaxSize ( int  id,
unsigned int  headerSize 
)

◆ sceHttpSetRequestContentLength()

int sceHttpSetRequestContentLength ( int  id,
unsigned long long int  contentLength 
)

◆ sceHttpUriEscape()

int sceHttpUriEscape ( char *  out,
unsigned int *  require,
unsigned int  prepare,
const char *  in 
)

◆ sceHttpUriUnescape()

int sceHttpUriUnescape ( char *  out,
unsigned int *  require,
unsigned int  prepare,
const char *  in 
)

◆ sceHttpUriParse()

int sceHttpUriParse ( SceHttpUriElement out,
const char *  srcUrl,
void *  pool,
unsigned int *  require,
unsigned int  prepare 
)

◆ sceHttpUriBuild()

int sceHttpUriBuild ( char *  out,
unsigned int *  require,
unsigned int  prepare,
const SceHttpUriElement srcElement,
unsigned int  option 
)

◆ sceHttpUriMerge()

int sceHttpUriMerge ( char *  mergedUrl,
const char *  url,
const char *  relativeUrl,
unsigned int *  require,
unsigned int  prepare,
unsigned int  option 
)

◆ sceHttpUriSweepPath()

int sceHttpUriSweepPath ( char *  dst,
const char *  src,
unsigned int  srcSize 
)

◆ sceHttpsLoadCert()

int sceHttpsLoadCert ( int  caCertNum,
const SceHttpsData **  caList,
const SceHttpsData cert,
const SceHttpsData privKey 
)

Register RootCA certificate for HTTPS authentication.

Parameters
[in]caCertNum- Number of elements of the list referncing to RootCA certificate
[in]caList- List referencing to RootCA certificate
[in]cert- Client certificate
[in]privKey- Private key
Returns
0 on success, < 0 on error.
Note
SCE_SYSMODULE_HTTPS module must be loaded with sceSysmoduleLoadModule to use this function.

◆ sceHttpsUnloadCert()

int sceHttpsUnloadCert ( void  )

◆ sceHttpsEnableOption()

int sceHttpsEnableOption ( unsigned int  sslFlags)

◆ sceHttpsDisableOption()

int sceHttpsDisableOption ( unsigned int  sslFlags)

◆ sceHttpsGetSslError()

int sceHttpsGetSslError ( int  id,
int *  errNum,
unsigned int *  detail 
)

◆ sceHttpsSetSslCallback()

int sceHttpsSetSslCallback ( int  id,
SceHttpsCallback  cbfunc,
void *  userArg 
)

◆ sceHttpsGetCaList()

int sceHttpsGetCaList ( SceHttpsCaList caList)

◆ sceHttpsFreeCaList()

int sceHttpsFreeCaList ( SceHttpsCaList caList)

◆ sceHttpSetCookieEnabled()

int sceHttpSetCookieEnabled ( int  id,
int  enable 
)

◆ sceHttpGetCookieEnabled()

int sceHttpGetCookieEnabled ( int  id,
int *  enable 
)

◆ sceHttpGetCookie()

int sceHttpGetCookie ( const char *  url,
char *  cookie,
unsigned int *  cookieLength,
unsigned int  prepare,
int  secure 
)

◆ sceHttpAddCookie()

int sceHttpAddCookie ( const char *  url,
const char *  cookie,
unsigned int  cookieLength 
)

◆ sceHttpSetCookieRecvCallback()

int sceHttpSetCookieRecvCallback ( int  id,
SceHttpCookieRecvCallback  cbfunc,
void *  userArg 
)

◆ sceHttpSetCookieSendCallback()

int sceHttpSetCookieSendCallback ( int  id,
SceHttpCookieSendCallback  cbfunc,
void *  userArg 
)