Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

unescaping/escaping data stream

8 views
Skip to first unread message

Timothy Jewett

unread,
Apr 20, 2006, 8:24:01 AM4/20/06
to
Not really sure what group to post this too.....
I have written a web gateway in C++ and was wondering if MS has an API for
escaping/unescaping a buffer for x-url-form-encoded support ?
--
Timothy Jewett
Jewet...@online.nospam

Gary Chang[MSFT]

unread,
Apr 21, 2006, 2:22:58 AM4/21/06
to
Hi Timothy,

Thanks for your post!

Based on the understanding, your client is encoding the data in Mime type
"application/x-url-form-encoded", and your server side code wants to decode
the data. Please let me know if I have misunderstood anything.

Current, we are doing research to find out the encoding format of the
"application/x-url-form-encoded" Mime type. If you happen to know the
encoding form, please feel free to post here, this will save us research
time.

Anyway, we will update you ASAP.

Thanks for your understanding.


Best regards,

Gary Chang
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Timothy Jewett

unread,
Apr 21, 2006, 8:03:02 AM4/21/06
to
Gary,
This mimetype is from a standard HTTP POST method. I found something since
posting this question. UrlEscape & UrlUnescape are the API's I was kind of
looking for, although they are for Url's. Is there an equivelant for just
handling POSTed data ?
--
Timothy Jewett
Jewet...@online.nospam

Gary Chang[MSFT]

unread,
Apr 24, 2006, 2:09:51 AM4/24/06
to
Hi Timothy,

Thanks for your feedback.

Based on the research, there's no WinINET API regarding this, but we may
call the appropriate function in the JScript DLL dynamically. Look for the
Unescape method. The article below shows us how to call the Jscript
function from C++ code:
http://www.codeproject.com/com/jscalls.asp

That being said, parsing remotely provided strings in C++ is inherently
pretty scary. It would be far safer to use .NET for this sort of task, and
.NET has library functions for exactly this purpose.

Hope this helps.

0 new messages