tfHttpcUserFreeObject

Jump to: navigation, search

Table of Contents >> Application Reference >> Web Client


#include <trsocket.h>


void tfHttpcUserFreeObject (void TM_FAR * objPtr);


Function Description

This function must be called after a successful call to tfHttpcUserGetResponseAuthParams() to release the allocated object. For example:

ttHttpcUserConHandle    clientHandle;
ttHttpcAuthArgVectorPtr argVecPtr;
int                     errorCode;
  . . .
errorCode = tfHttpcUserGetResponseAuthParams(clientHandle, &argVecPtr);
assert(errorCode == TM_ENOERROR);
  . . .
/* Examine the server's WWW-Authenticate challenge and build an Authorization response */
  . . .
tfHttpcUserFreeObject(argVecPtr);
Warning Warning: Do not use tfHttpcUserFreeObject() to free the HTTPC client connection handle -- it will not have the desired effect. Use tfHttpcUserClose() to free the HTTPC client connection handle.


Parameters


Table of Contents >> Application Reference >> Web Client