webengine/wmlengine/src/utils/src/nw_loadreq.cpp
changeset 10 a359256acfc6
parent 0 dd21522fd290
child 26 cb62a4f66ebe
equal deleted inserted replaced
5:10e98eab6f85 10:a359256acfc6
   582   NW_Uint32 convertedNameLen = 0;
   582   NW_Uint32 convertedNameLen = 0;
   583   NW_Ucs2*  convertedValue = NULL;
   583   NW_Ucs2*  convertedValue = NULL;
   584   NW_Uint32 convertedValueLen = 0;
   584   NW_Uint32 convertedValueLen = 0;
   585   NW_Uint32 parameterLen = 0;
   585   NW_Uint32 parameterLen = 0;
   586   
   586   
       
   587   const char* ie  = "ie";
       
   588   const char* euc = "EUC-KR"; 
   587   NW_TRY( status )
   589   NW_TRY( status )
   588       {
   590       {
   589 
   591 
   590 
   592 
   591 		NW_ASSERT(escapedPostdata != NULL);
   593 		NW_ASSERT(escapedPostdata != NULL);
   598 		    // escaped_postdata.
   600 		    // escaped_postdata.
   599   	        *escapedPostdata = NW_Str_NewcpyConst( "" );
   601   	        *escapedPostdata = NW_Str_NewcpyConst( "" );
   600 		    return KBrsrSuccess;
   602 		    return KBrsrSuccess;
   601 		    }
   603 		    }
   602 
   604 
   603   	    status = KBrsrFailure;
   605         // set status to KBrsrSuccess because if the were only ie=EUC-KR as 
       
   606         // postdata we need to return KBrsrSuccess 
       
   607         status = KBrsrSuccess;
   604 		CBufFlat* buffer = CBufFlat::NewL(20);  // arbitrary granularity.
   608 		CBufFlat* buffer = CBufFlat::NewL(20);  // arbitrary granularity.
   605 		NW_Bool   needSep = NW_FALSE;
   609 		NW_Bool   needSep = NW_FALSE;
   606 
   610 
   607 		(void) NW_NVPair_ResetIter( postfields );
   611 		(void) NW_NVPair_ResetIter( postfields );
   608 		while ( KBrsrSuccess == (status = NW_NVPair_GetNext( postfields, &name, &value ))) 
   612 		while ( KBrsrSuccess == (status = NW_NVPair_GetNext( postfields, &name, &value ))) 
   609           {
   613           {
       
   614           if ( 0 == NW_Str_StrnicmpConst( name, ie, NW_Str_Strlen( name ) ) &&
       
   615                0 == NW_Str_StrnicmpConst( value, euc, NW_Str_Strlen( value ) ) )
       
   616               {
       
   617               continue;
       
   618               } 
   610 
   619 
   611           if ( needSep ) 
   620           if ( needSep ) 
   612               {
   621               {
   613 			  // append "&" delimiter, as Ucs2
   622 			  // append "&" delimiter, as Ucs2
   614               buffer->InsertL(buffer->Size(), WAE_URL_POSTFIELD_SEP, 2);
   623               buffer->InsertL(buffer->Size(), WAE_URL_POSTFIELD_SEP, 2);