:orphan: # PetscHTTPSConnect connect to a HTTPS server ## Synopsis ``` PetscErrorCode PetscHTTPSConnect(const char host[], int port, SSL_CTX *ctx, int *sock, SSL **ssl) ``` ## Input Parameters - ***host -*** the name of the machine hosting the HTTPS server - ***port -*** the port number where the server is hosting, usually 443 - ***ctx -*** value obtained with `PetscSSLInitializeContext()` ## Output Parameters - ***sock -*** socket to connect - ***ssl -*** the argument passed to `PetscHTTPSRequest()` ## See Also `PetscOpenSocket()`, `PetscHTTPSRequest()`, `PetscSSLInitializeContext()` ## Level advanced ## Location src/sys/webclient/client.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/webclient/client.c) [Index of all Sys routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)