I am trying to use synchronous/blocked sockets. I can connect to the socket server and open a socket, but I am often getting an error when doing RHostResolver::GetByName(). If I try to resolve "www.nokia.com" or "111.111.00.00" I have success. If I try to resolve a host with a Page ("www.nokia.com/games/index.html" or "111.111.00.00/example.asp" I get an Error. I think the error is usually -2 (KErrGeneral) but I once saw -3050 (KErrIfAuthenticationFailure). I've included a code fragment.
//Open a socket for use with the name resolver. Leave if it fails
User::LeaveIfError(iHostResolver.Open(iSocketServ, KAfInet, KProtocolInetUdp));
//Start name resolution
//For example: aServerName could be "www.nokia.com"
//or an IP address with or without page
Err = iHostResolver.GetByName(aServerName, iNameEntry); //, iStatus);