Hi,
is there anything wrong with this code? I'll be very thankful to any reply.
INetConfigNameType netconf;
error = SysLibFind("INet.lib", &libRefNum);
if (error)
return error;
MemMove(netconf.name, inetCfgNameDefault, inetConfigNameSize);
error = INetLibConfigIndexFromName(libRefNum, &netconf, &index);
if (error)
return error;
error = INetLibOpen(libRefNum, index, 0, NULL, 0, &hInet);
if (error)
return error;
error = INetLibURLOpen( libRefNum, hInet, _S(http://server), (unsigned
char *)"popo", &hSock, 2000, 0 );
Here when using the emulator I receive the error message:
"StringMgr.c Line 155, NULL string passed"
I can continue with the emulator with
Char szText[256];
StrCopy(szText, "blabla");
error = INetLibSockHTTPReqCreate(libRefNum, hSock, (unsigned char*)"GET",
(unsigned char*)szText, NULL);
error = INetLibSockHTTPReqSend(libRefNum, hSock, (unsigned char*)"", 2,
500);
, but it does not work on real device.
Thank in advance,
Nike
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/