How does IE process this URL “action.do?v=credit/CC/Query&para=123456”

拟墨画扇 提交于 2019-12-24 17:14:07

问题


I request this URL

BillOutQryForCCPre.do?_viewReferer=creditcard/CC/adv/BillOutQry&para=101600000846 in IE,

And I can't get the parameter value.

And when I move my mouse cursor to the hyperlink, I see the URL changed to BillOutQryForCCPre.do?_viewReferer=creditcard/CC/BillOutQry¶=101600000846.

The charactors &para is changed to , I don't know why.

And Chrome doesn't have this problem, Firefox too.

When I change the parameter name para to ssss, I find the hyperlink normal.

Is the word para a keyword in IE?

I know I can switch the parameters order to solve this problem, but I really want to know why it's that.


回答1:


¶ is the html entity for the paragraph mark you are seeing there. Apparently, Internet Explorer is trying to be clever and thinks you have left the semi-colon off the end, and so it is converting it anyway.

As mneonneo said in the comment above, you need to HTML-encode the & characters in the url, so that the link you are actually outputting is

BillOutQryForCCPre.do?_viewReferer=creditcard/CC/adv/BillOutQry&para=101600000846


来源:https://stackoverflow.com/questions/12907134/how-does-ie-process-this-url-action-dov-credit-cc-querypara-123456

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!