Function psp::sys::sceHttpCreateRequestWithURL

source ·
#[no_mangle]
pub unsafe extern "C" fn sceHttpCreateRequestWithURL(
    connection_id: i32,
    method: HttpMethod,
    url: *mut u8,
    content_length: u64
) -> i32
Expand description

Create a http request with url.

§Parameters

  • connection_id: ID of the connection created by sceHttpCreateConnection or sceHttpCreateConnectionWithURL
  • method: One of ::HttpMethod
  • url: url to access
  • content_length: Length of the content (POST method only)

§Return Value

A request ID on success, < 0 on error.