PetscErrorCode PetscHTTPRequest(const char type[],const char url[],const char header[],const char ctype[],const char body[],int sock,char buff[],size_t buffsize)
type | - either "POST" or "GET" | |
url | - URL of request host/path | |
header | - additional header information, may be NULL | |
ctype | - data type of body, for example Section 1.5 Writing Application Codes with PETSc/json | |
body | - data to send to server | |
sock | - obtained with PetscOpenSocket() | |
buffsize | - size of buffer |