91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 2.74KB
    文件類型: .rar
    金幣: 1
    下載: 0 次
    發(fā)布日期: 2021-03-27
  • 語言: 其他
  • 標簽: 其他??

資源簡介


c++HTTP源碼,http post 簡單實現

資源截圖

代碼片段和文件信息

#include?“StdAfx.h“
#include?“AmHttpSocket.h“
#include?se.h>
#include?

#define?AgentName?_T(“Nimo?Software?HTTP?Retriever?1.0“)

//case?insensitive?search?functions...
#ifdef?UNICODE
#define?_tcsustr?wcsustr
#else
#define?_tcsustr?strustr
#endif
char*?strustr(char?*source?char?*s);
wchar_t*?wcsustr(wchar_t?*source?wchar_t?*s);

char*?strustr(char?*source?char?*s)
{
//make?an?uppercase?copy?af?source?and?s
char?*csource?=?strdup(source);
char?*cs?=?strdup(s);
strupr(csource);
strupr(cs);
//find?cs?in?csource...
char?*result?=?strstr(csource?cs);
if?(result?!=?NULL)
{
//cs?is?somewhere?in?csource
int?pos?=?result?-?csource;
result?=?source;
result?+=?pos;
}
//clean?up
free(csource);
free(cs);
return?result;
}

wchar_t*?wcsustr(wchar_t?*source?wchar_t?*s)
{
//make?an?uppercase?copy?af?source?and?s
wchar_t?*csource?=?wcsdup(source);
wchar_t?*cs?=?wcsdup(s);
wcsupr(csource);
wcsupr(cs);
//find?cs?

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件???????6502??2001-09-01?10:15??AmHttpSocket.cpp

?????文件???????1064??2001-09-01?10:15??AmHttpSocket.h

-----------?---------??----------?-----??----

?????????????????7566????????????????????2


評論

共有 條評論