开发者

Classic ASP Request.Form removes spaces?

开发者 https://www.devze.com 2023-01-02 21:21 出处:网络
I\'m trying to figure this oddity out... in classic ASP i seem to be losing spaces in Request.Form values...

I'm trying to figure this oddity out... in classic ASP i seem to be losing spaces in Request.Form values...

ie, Request.Form("json") is

{"project":{"...","administrator":"AlexGorbatchev",
"anonymousViewUrl":null,"assets":[],"availableFrom":"6/10/20104:15PM"...

However, CStr(Request.Form) is

json={"project":{"__type":"...":"Alex Gorbatchev",
"anonymousViewUrl":null,"assets":[],"availableFrom":"6/10/2010 4:15 PM"...

Here's the entire code :)

<%@ language="VBSCRIPT"%>
<%
开发者_如何学GoResponse.Write(CStr(Request.Form("json")))
Response.Write(CStr(Request.Form))
%>

Somebody please tell me I haven't lost all my marbles...


aaand I found the problem 5 minutes after... as usual :) posted values need to be url encoded.

0

精彩评论

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