WebBrowserComponent URL[SOLVED]

Hi Julian,
I have solved the issue, you would have to add a extra line of code to webBrowserComponent’s “sendWebViewToURL” method.

This is the change i have done

 void sendWebViewToURL (const char* utf8URL,
                           const char** headerNames, 
                           const char** headerValues, 
                           int numHeaders,
                           const char* postData, 
                           int postDataSize)
    {
		NSString* formattedURL = [NSString stringWithString:[[NSString stringWithUTF8String: utf8URL] stringByAddingPercentEscapesUsingEncoding: NSASCIIStringEncoding]];  // added this line, it encodes all non- URL characters
		
		NSMutableURLRequest* r = [NSMutableURLRequest 
								  requestWithURL: [NSURL URLWithString: formattedURL]
								  cachePolicy: NSURLRequestUseProtocolCachePolicy
								  timeoutInterval: 30.0];// pass the formated URL.

        if (postDataSize > 0)
        {
            [ r setHTTPMethod: @"POST"];
            [ r setHTTPBody: [NSData dataWithBytes: postData length: postDataSize]];
        }

        int i;
        for (i = 0; i < numHeaders; ++i)
        {
            [ r setValue: [NSString stringWithUTF8String: headerValues[i]]
                forHTTPHeaderField: [NSString stringWithUTF8String: headerNames[i]]];
        }

        [[webView mainFrame] stopLoading ];
        [[webView mainFrame] loadRequest: r];
    }

“stringByAddingPercentEscapesUsingEncoding” encodes all the non-URL/non secure URLcharaters.

I have tested it and it works well. It is safe to put this code in.