Settings | Sign in | Sign up

The author has 4 posts.

http的中文乱码问题已经解决了

Floor 1 巨大八爪鱼 6/8/16 21:54
HttpContent h;
h.lpszAgent = TEXT("abc");
h.lpszServer = TEXT("localhost");
h.lpszPage = TEXT("test/post.php");
h.nPort = 81;
h.plPost.SetParam(TEXT("this"), TEXT("中文问题已解决"));
h.Download(true);

LPWSTR lp = UTF8To16((LPSTR)h.GetData());
SetWindowTextW(hWnd, lp);
free(lp);
Floor 2 巨大八爪鱼 6/8/16 21:54
h.plPost = TEXT("this=测试额");
Floor 3 巨大八爪鱼 6/8/16 22:20
Floor 4 巨大八爪鱼 6/9/16 22:36

Reply @巨大八爪鱼 on Floor 3:

这是因为
1.没有开启SSL
2.没有在URL的最后一个目录名后加/

Content converter:

Reply the post
Content:
User: You are currently anonymous.
Captcha:
Unclear? Try another one.