额外路径信息 [英] Extra Path Info

查看:128
本文介绍了额外路径信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很抱歉,如果这是一个重复,但我看到的只是相同的信息。


这是我的崩溃:


我可以让PATH_INFO工作。除了ASP之外什么都没有。 Python,Perl,

Cmd文件......工作正常。当添加额外路径

信息时,ASP找不到文件。是否有ASP的开关或我可以改变的东西?b $ b改变它会让它起作用吗?


谢谢!

I''m sorry if this is a rehash, but all I see is the same info.

Here''s my debacle:

I CAN get the PATH_INFO to work. With ANYTHING but ASP. Python, Perl,
Cmd files... works fine. ASP can''t find a file when extra path
information is added. Is there a switch in ASP or something I can
change that''ll get it to work?

Thanks!

推荐答案

cd ****** @ gmail.com 写道:

如果这是重拍,我很抱歉,但我看到的只是相同的信息。


这是'我的崩溃:


我可以让PATH_INFO工作。除了ASP之外什么都没有。 Python,

Perl,Cmd文件......工作正常。当添加额外路径

信息时,ASP找不到文件。是否有ASP中的开关或者我可以改变的东西
改变它会让它起作用吗?


谢谢!
I''m sorry if this is a rehash, but all I see is the same info.

Here''s my debacle:

I CAN get the PATH_INFO to work. With ANYTHING but ASP. Python,
Perl, Cmd files... works fine. ASP can''t find a file when extra path
information is added. Is there a switch in ASP or something I can
change that''ll get it to work?

Thanks!



1.你在谈论什么脚本语言?

2.我无法理解你的pr9oblem。请提供一个简单的例子来说明
说明它。


-

Microsoft MVP - ASP / ASP.NET

请回复新闻组。我的From

标题中列出的电子邮件帐户是我的垃圾邮件陷阱,因此我不经常检查它。通过发布到新闻组,您将获得更快的回复。

1. What scripting language are you talking about?
2. I can''t understand your pr9oblem. Please provide a simple example to
illustrate it.

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don''t check it very often. You will get a
quicker response by posting to the newsgroup.


对不起它不太清楚。


这是'我的问题:我在ASP中使用VBScript,用Python创建一个

CGI。


Python代码:

======================================== =====

import os


print" Content-type:text / plain\\\
"


print" Path info:",os.environ [" PATH_INFO"]

============================== ========================


ASP:

==== =========================================

< ;%@语言= VBScript%>

< HTML>

< HEAD>

< meta name =" vs_targetSchema"

content =" http://schemas.microsoft.com/intellisense/ie3-2nav3-0">

< TITLE>路径信息测试< / TITLE> ;

< / HEAD>

< body>

额外路径信息是:<%=

Request.ServerVariables(" PATH_INFO")%>

< / body>

< ; / HTML>

====================================== =======

我的问题是,当我将它们称为:

http://< my server> /< path> /<文件名>

两个脚本都将PATH_INFO返回为/< path> /< filename>


当我将它们称为:

http://< my server> /< path> /< filename> /< extra> /< path>

Python脚本返回PATH_INFO

/< path> /< filename> /< extra> /< path>
并且服务器报告无法找到ASP文件。


我已确保在应用程序设置中,检查以确保

此文件存在被禁用。


所以,我的问题是为什么这两个脚本对添加的

路径信息的反应不同?我最初的猜测是,Python脚本调用了EXE的
并且像CGI一样运行,但ASP作为ISAPI运行,但是

并没有多大意义我希望这能澄清我的问题。


Bob Barrows [MVP]写道:
Sorry it''s not too clear.

Here''s my issue: I''m using VBScript in ASP, and Python to create a
CGI.

Python Code:
=============================================
import os

print "Content-type: text/plain\n"

print "Path info:", os.environ["PATH_INFO"]
=============================================

ASP:
=============================================
<%@ Language=VBScript %>
<HTML>
<HEAD>
<meta name="vs_targetSchema"
content="http://schemas.microsoft.com/intellisense/ie3-2nav3-0">
<TITLE>Path Info Test</TITLE>
</HEAD>
<body>
The extra path information is: <%=
Request.ServerVariables("PATH_INFO") %>
</body>
</HTML>
=============================================
My issue is, when I call them as:
http://<my server>/<path>/<filename>
both scripts return the PATH_INFO as /<path>/<filename>

When I call them as:
http://<my server>/<path>/<filename>/<extra>/<path>
the Python script returns a PATH_INFO of
/<path>/<filename>/<extra>/<path>
and the server reports that the ASP file cannot be found.

I have made sure that in the application settings, "Check to make sure
this file exists" is disabled.

So, my question is why do the two scripts react differently to added
path information? My initial guess was that the Python script calls
the EXE and runs like a CGI but the ASP runs as an ISAPI, but that
didn''t make much sense to me.

Hope this clarifies my question.

Bob Barrows [MVP] wrote:
cd******@gmail.com 写道:

如果这是重拍,我很抱歉,但我看到的只是相同的信息。


这是我的崩溃:

我可以让PATH_INFO工作。除了ASP之外什么都没有。 Python,

Perl,Cmd文件......工作正常。当添加额外路径

信息时,ASP找不到文件。是否有ASP中的开关或者我可以改变的东西
改变它会让它起作用吗?


谢谢!
I''m sorry if this is a rehash, but all I see is the same info.

Here''s my debacle:

I CAN get the PATH_INFO to work. With ANYTHING but ASP. Python,
Perl, Cmd files... works fine. ASP can''t find a file when extra path
information is added. Is there a switch in ASP or something I can
change that''ll get it to work?

Thanks!



1.你在谈论什么脚本语言?

2.我无法理解你的pr9oblem。请提供一个简单的例子来说明
说明它。


-

Microsoft MVP - ASP / ASP.NET

请回复新闻组。我的From

标题中列出的电子邮件帐户是我的垃圾邮件陷阱,因此我不经常检查它。通过发布到新闻组,您将获得更快的回复

1. What scripting language are you talking about?
2. I can''t understand your pr9oblem. Please provide a simple example to
illustrate it.

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don''t check it very often. You will get a
quicker response by posting to the newsgroup.


ASP没有额外路径信息的概念,除非你在谈论

querystrings。在IIS中,文件名后唯一允许的是

名称/值对列表,用问号开头并用&'s分隔

:<

http:/ /www.myweb.com/path/abc.asp?a=526&b=hello


此名称/值对列表称为查询字符串。这就是你在谈论什么?b $ b?我真的不熟悉Python。

cd ****** @ gmail.com 写道:
ASP has no concept of "extra path info", unless you are talking about
querystrings. In IIS, the only thing allowed after the file name is a
list of name/value pairs initiated with a question mark and delimited
with &''s:

http://www.myweb.com/path/abc.asp?a=526&b=hello

This name/value pair list is called a querystring. Is that what you are
talking about? I''m really not familiar with Python.

cd******@gmail.com wrote:

对不起它不太清楚。


这是我的问题:我'在ASP中使用VBScript,用Python创建一个
CGI。


Python代码:

==== =========================================

导入os


print" Content-type:text / plain\\\
"

print" Path info:",os。 environ [" PATH_INFO"]

=================================== ==========


ASP:

================== ===========================

<%@ Language = VBScript%>

< HTML>

< HEAD>

< meta name =" vs_targetSchema"

content =" http: //schemas.microsoft.com/intellisense/ie3-2nav3-0">

< TITLE>路径信息测试< / TITLE>

< / HEAD>

< body>

额外的路径信息是:<%=

Request.ServerVariables(" PATH_INFO" ;)%>

< / body>

< / HTML>

=========== ==================================


我的问题是,当我将它们称为:

http://< my server> /< path> /< filename>

两个脚本都将PATH_INFO返回为/<路径> /<文件名>


当我将它们称为:

http://< my server> /< path> /<文件名> /< extra> /< path>

Python脚本返回PATH_INFO

/< path> /< filename> /< extra> /< path>

并且服务器报告无法找到ASP文件。


我已确保在应用程序设置中,检查确保

此文件存在被禁用。


所以,我的问题是为什么这两个脚本对添加的

路径信息的反应不同?我最初的猜测是,Python脚本调用了EXE的
并且像CGI一样运行,但ASP作为ISAPI运行,但是

并没有多大意义我希望这能澄清我的问题。


Bob Barrows [MVP]写道:
Sorry it''s not too clear.

Here''s my issue: I''m using VBScript in ASP, and Python to create a
CGI.

Python Code:
=============================================
import os

print "Content-type: text/plain\n"

print "Path info:", os.environ["PATH_INFO"]
=============================================

ASP:
=============================================
<%@ Language=VBScript %>
<HTML>
<HEAD>
<meta name="vs_targetSchema"
content="http://schemas.microsoft.com/intellisense/ie3-2nav3-0">
<TITLE>Path Info Test</TITLE>
</HEAD>
<body>
The extra path information is: <%=
Request.ServerVariables("PATH_INFO") %>
</body>
</HTML>
=============================================
My issue is, when I call them as:
http://<my server>/<path>/<filename>
both scripts return the PATH_INFO as /<path>/<filename>

When I call them as:
http://<my server>/<path>/<filename>/<extra>/<path>
the Python script returns a PATH_INFO of
/<path>/<filename>/<extra>/<path>
and the server reports that the ASP file cannot be found.

I have made sure that in the application settings, "Check to make sure
this file exists" is disabled.

So, my question is why do the two scripts react differently to added
path information? My initial guess was that the Python script calls
the EXE and runs like a CGI but the ASP runs as an ISAPI, but that
didn''t make much sense to me.

Hope this clarifies my question.

Bob Barrows [MVP] wrote:

> cd******@gmail.com 写道:

>>如果这是重拍,我很抱歉,但我看到的只是相同的信息。

这是我的崩溃:

我可以让PATH_INFO工作。除了ASP之外什么都没有。 Python,
Perl,Cmd文件......工作正常。当添加额外的路径信息时,ASP找不到文件。是否有ASP的转换或我可以改变的东西,它会让它工作?

谢谢!
>>I''m sorry if this is a rehash, but all I see is the same info.

Here''s my debacle:

I CAN get the PATH_INFO to work. With ANYTHING but ASP. Python,
Perl, Cmd files... works fine. ASP can''t find a file when extra
path information is added. Is there a switch in ASP or something I
can change that''ll get it to work?

Thanks!


1.你在说什么脚本语言?
2。我无法理解你的问题。请提供一个简单的例子来说明它。

-
Microsoft MVP - ASP / ASP.NET
请回复新闻组。我的From
标题中列出的电子邮件帐户是我的垃圾邮件陷阱,因此我不经常检查它。通过发布到新闻组,您将获得更快的回复。

1. What scripting language are you talking about?
2. I can''t understand your pr9oblem. Please provide a simple example
to illustrate it.

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don''t check it very often. You will get
a quicker response by posting to the newsgroup.



-

Microsoft MVP - ASP / ASP.NET

请回复新闻组。我的From

标题中列出的电子邮件帐户是我的垃圾邮件陷阱,因此我不经常检查它。通过发布到新闻组,您将获得更快的回复。

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don''t check it very often. You will get a
quicker response by posting to the newsgroup.


这篇关于额外路径信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆