Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ÓÃC socket http·¢ËÍÕâ¶ÎÇëÇó±¨ÎÄ

HTTP·ÖΪÇëÇóÐУ¬ÇëÇóÍ·²¿ÒÔ¼°ÇëÇóÄÚÈÝ
ÄǸö³¤¶ÈÊý×ÖÖµ¾ÍÊÇÇëÇóÄÚÈݵij¤¶È£¨×Ö½ÚΪµ¥Î»£©
¸øÒ»¶ÎÀý×ÓÄã¾Í»ù±¾Ã÷°×ÁË:
onst CString getString(int i)
{
    CString s;
    s.Format(_T("%d"), i);
    return s;
}
////////////////////////////////
CString cnt;
        CString psr;
        cnt.Append(_T("<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n"));
        cnt.Append(_T("<soap12:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-
instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"
xmlns:soap12=\"http://www.w3.org/2003/05/soap-envelope\">\r\n"));
        cnt.Append(_T("<soap12:Body>\r\n"));
        cnt.Append(_T("<CelsiusToFahrenheit xmlns=\"http://tempuri.org/\">\r\n"));
        cnt.Append(_T("<Celsius>100</Celsius>\r\n"));
        cnt.Append(_T("</CelsiusToFahrenheit>\r\n"));
        cnt.Append(_T("</soap12:Body>\r\n"));
        cnt.Append(_T("</soap12:Envelope>\r\n\r\n"));
        psr.Append(_T("POST "));
        psr.Append(_T("/webservices/tempconvert.asmx"));
        psr.Append(_T(" HTTP/1.1\r\nHOST: "));
        psr.Append(_T("www.w3schools.com"));
        psr.Append(_T("\r\nContent-Type: application/soap+xml; charset=utf-8"));
     &nb


Ïà¹ØÎĵµ£º

C×Ö·û´®·´×ªËã·¨

Ò»¸öºÜ¼ò½àµÄËã·¨£º
void Reverse(char s[])
{
    for(int i = 0, j = strlen(s) - 1; i < j; ++i, --j) {
        char c = s[i];
        s[i] = s[j];
        s[j] = c;
 & ......

¡¾×ª¡¿c´úÂëÓÅ»¯


1¡¢Ñ¡ÔñºÏÊʵÄËã·¨ºÍÊý¾Ý½á¹¹
Ñ¡ÔñÒ»ÖÖºÏÊʵÄÊý¾Ý½á¹¹ºÜÖØÒª£¬Èç¹ûÔÚÒ»¶ÑËæ»ú´æ·ÅµÄÊýÖÐʹÓÃÁË´óÁ¿µÄ²åÈëºÍɾ³ýÖ¸ÁÄÇʹÓÃÁ´±íÒª¿ìµÃ¶à¡£Êý×éÓëÖ¸ÕëÓï¾ä¾ßÓÐÊ®·ÖÃÜÇеĹØÏµ£¬Ò»°ãÀ´Ëµ£¬Ö¸Õë±È½ÏÁé»î¼ò½à£¬¶øÊý×éÔò±È½ÏÖ±¹Û£¬ÈÝÒ×Àí½â¡£¶ÔÓڴ󲿷ֵıàÒëÆ÷£¬Ê¹ÓÃÖ¸Õë±ÈʹÓÃÊý×éÉú³ÉµÄ´úÂë¸ü¶Ì£¬Ö´ÐÐЧÂʸü¸ß¡£
ÔÚÐí¶à ......

ʹÓô¿CÔÚ×Ô¼ºµÄ´°¿ÚÖÐǶÈëHTML¿Ø¼þ

±ê Ìâ: ¡¾·­Òë¡¿¹ýÄêÁË£¬Ï×ÉÏСÀñ - ʹÓô¿CÔÚ×Ô¼ºµÄ´°¿ÚÖÐǶÈëHTML¿Ø¼þ
×÷ Õß: xiep
ʱ ¼ä: 2010-01-22,13:42:29
Á´ ½Ó: http://bbs.pediy.com/showthread.php?t=105702
ǰ¶Îʱ¼äÒòΪÏîÄ¿ÐèÒª£¬ËùÒÔ·­ÒëÁËÕâÆª£¬Ï£Íû¶ÔijЩÈËÓÐÓá£ÓÉÓÚʱ¼ä²Ö´Ù£¬´íÎóÖ®´¦ÔÚËùÄÑÃ⣬Çë²»ÁßÖ¸³ö¡£
Áí£ºbrowser libΪÎÒ¸ÄдµÄÒ»¸ö¾ ......

³¹µ×¸ã¶¨CÖ¸Õë

 
תÌû×Ôhttp://teren.itpub.net/post/15914/189516дµÄ·Ç³£ºÃ£¬Í¬Ê±¶Ô×÷Õß´òÆÆÉ°¹øÎʵ½µ×µÄ¾«Éñ³¹µ×ÕÛ·þ
¡¶³¹µ×¸ã¶¨CÖ¸Õë¡·µÚһƪ ±äÁ¿µÄÄÚ´æÊµÖÊ
ÒªÀí½âCÖ¸Õ룬ÎÒÈÏΪһ¶¨ÒªÀí½âCÖГ±äÁ¿”µÄ´æ´¢ÊµÖÊ£¬ËùÒÔÎҾʹӓ±äÁ¿”Õâ¸ö¶«Î÷¿ªÊ¼½²Æð°É£¡
ÏÈÀ´Àí½âÀí½âÄÚ´æ¿Õ¼ä°É£¡Çë¿´ÏÂͼ£º
ÄÚ´æµØ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ