The function connect() doesn't change the status of variable httpc_isConnected, after returning HTTPC_TRUE. It retains its state as False.