Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/420.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/265.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 在IIS 7.5 server 2008上获取放置和删除请求的404_Javascript_Php_Http_Iis - Fatal编程技术网

Javascript 在IIS 7.5 server 2008上获取放置和删除请求的404

Javascript 在IIS 7.5 server 2008上获取放置和删除请求的404,javascript,php,http,iis,Javascript,Php,Http,Iis,几天来,我一直在努力解决我的web应用程序中的放置、删除问题 我正在使用REST服务器(php) Windows Server 2008 R2 IIS 7.5 我的服务器是位于德国contabo公司的专用服务器 客户端使用js(sencha touch) 得到,波斯特很好 我的域和数据库在同一台服务器上,我尝试了许多使用网络的建议: 启用“处理程序映射”中的谓词 未安装Webdav 创建web.config: 我还尝试对“applicationHost.config”(C:\Wind

几天来,我一直在努力解决我的web应用程序中的放置、删除问题

  • 我正在使用REST服务器(php)
  • Windows Server 2008 R2 IIS 7.5
  • 我的服务器是位于德国contabo公司的专用服务器
  • 客户端使用js(sencha touch)
  • 得到,波斯特很好
我的域和数据库在同一台服务器上,我尝试了许多使用网络的建议:

  • 启用“处理程序映射”中的谓词
  • 未安装Webdav
  • 创建web.config:

我还尝试对“applicationHost.config”(C:\Windows\System32\inetsrv\config)进行中介:


但什么都没有:-(

  • 我也有带win7和IIS 7.5的笔记本电脑,没问题,它工作得很好
  • 我只是不知道如何在我的服务器上修复它

谢谢你的建议,我不知道为什么会出现这个问题,但我对你的URL非常谨慎。在GET电话中,你有
xxxxxx.com/php/customers.php?\u dc=1417023448549&db=107&page=2&start=25&limit=25
作为你的URL。只是为了解释一下,如果你已经知道这一点,不要侮辱你,但查询字符串是服务器如何引用的在响应中返回哪个对象。这些值包括GET请求的
\u dc=1417023448549&db=107&page=2&start=25&limit=25
。因此服务器知道GET请求需要的对象的_dc值为1417023448549,db值为107,等等。当您有PUT请求时,您有
xxxxxx.com/php/customers.php/13?_dc=1417022337273
。我不知道为什么customers.php之后会有另一个
/
。也就是说customers.php是另一个目录。你说sencha正在创建URL。我猜你在某个地方配置不正确。

这里你可以在浏览器中运行它,你可以使用firebug查看结果:

roya4u.com/roya_se_mobile

尝试编辑联系人,然后点击“绿色”按钮(保存

当我将链接从FIREBUG复制到浏览器中的“新建”选项卡时,它会起作用:

http://roya4u.com/Roya_SE_Mobile/php/customers.php/13?_dc=1417027029131
我得到了回应


这很奇怪???

你试过用Firebug跟踪请求吗?本地机器的网络跟踪和服务器的跟踪有什么区别吗?我一直在用Firebug,它只是说:PUT 404 Not Found 4.6s当你做一个GET and POST时,它和PUT and DELETE中的URL是一样的吗?当然,它是一样的url和相同的.php文件:GET xxxxxx.com/php/customers.php?_dc=1417023448549&db=107&page=2&start=25&limit=25 200 OK 1.68sDid您是否将PUT和DELETE配置为IIS中允许的动词?另外,GET和PUT之间的_dc是什么?查询字符串是不同的。我对sencha代码没有控制权,我在“/”中看到过这种情况,但是act代码在我的笔记本电脑中运行良好!
<add name="PHP_via_FastCGI" path="*.php" verb="GET,HEAD,PUT,DELETE,POST" modules="FastCgiModule" scriptProcessor="C:\Program Files (x86)\PHP\v5.6\php-cgi.exe" resourceType="Either" />
<add name="PHP53_via_FastCGI" path="*.php" verb="GET,HEAD,PUT,DELETE,POST" modules="FastCgiModule" scriptProcessor="C:\Program Files (x86)\PHP\v5.3\php-cgi.exe" resourceType="Either" />
<add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,OPTIONS" type="System.Web.Handlers.TransferRequestHandler" resourceType="Unspecified" requireAccess="Script" preCondition="integratedMode,runtimeVersionv4.0" />
http://roya4u.com/Roya_SE_Mobile/php/customers.php/13?_dc=1417027029131