开发者

Is there any exist API for URL-encoding in mfc c++? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

开发者_JAVA百科

Closed 3 years ago.

Improve this question

I am using the following code:

CAtlNavigateData navData;
CStringA m_strForm = "name=+++&priv=1&password=";
navData.SetPostData((BYTE*)(LPSTR)(LPCSTR)m_strForm, m_strForm.GetLength(), QHTTP_FORM_URLENCODE);

special symbols such as :"+++" need to do url-encoding, without url-encoding, +++ will turned into space.

I need a converer.

CString URLEncodingConvertion(const CString& original)
{
XXX
}

Is there any APIs for doing this in c++? If I implement it myself, maybe I can not take whole situations into account. And can not control the code.

Can anyone help?

Many thanks!


AtlEscapeUrl()

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜