# mcorest_conn_execute

> Executes one or more HTTP requests.

### For an overview see page Web Services

### Prototype

      MCO_RET mcorest_conn_execute(mcorest_conn_h conn,
                         long timeout);

### Arguments

conn | Connection handle
timeout | Incoming data wait timeout

### Description

> This function executes one or more HTTP requests. This function may be called by a thread other than the one that accepted the connection. However, it should not be called with the same connection from different threads.

### Return Codes

MCO_S_OK = 0 | Success
MCO_S_REST_CONN_FINISHED | A request was executed and the connection was closed
MCO_S_REST_TIMEOUT | The statement could not complete within the specified `timeout`
MCO_E_REST_* | Any of the Web Services Error Codes

### Files

Header file:
mcorest.h
Source file:
mcorest.c
Library:
libmcorest.a