fantast_xu - 2006-11-02

use CyberLink C++ 1.7.1

create a control point to get Upnp IGD device's child:WANConnectionDevice
invoke GetExternalIPAddress action below:

code:
    Action *act = wanconnectiondevice->getAction( "GetExternalIPAddress");
    if( act )
        {
            //no input arg
            //invoke
            if( act->postControlAction() == true )
            {
                ArgumentList *outArgList = addportaction->getOutputArgumentList();
                Argument *outArg = outArgList->getArgument( "ExternalIPAddress" );
                externalip = outArg->getValue();                       
                return 1;
            }
                }

.................

then postControlAction return false, use UPnPStatus to get http error code 411:Length required.
How to solve this problem?
Thanks!