douduan9391 2013-11-08 08:59
浏览 605
已采纳

IIS 7.0增加了URL大小限制

I have a web page that receives notification from payment processor when a client has made a payment to my site.

The notification arrives in the form of a GET submission, so the URL can be quite long. I have no jurisdiction over how the notification is sent, so I cannot simply change it to a POST submission, which would solve all my problems.

The problem is that sometimes the notification is not received as the URL is too long. It is only barely clipping the limit of what is allowed because if I shorten the URL by a mere 15 characters I get a successful connection.

I have tried changing UrlSegmentMaxCount om the windows registry, but the problem remains.

Does anyone know how I can configure my IIS hosted php site to allow for longer GET requests?

EDIT

This is what I have tried.

In case it is a php issue I have added the line in my .htaccess file:

php_value suhosin.get.max_value_length 2048

and to try and fix any windows issues I have put in my registry: #

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\HTTP\Parameters] "UrlSegmentMaxLength"=dword:00001000

  • 写回答

2条回答 默认 最新

  • dpwdsmbvm496180204 2013-11-08 11:06
    关注

    Is request filtering enabled? If it is try changing the maxQueryString and maxUrl parameters and see if that's what's restricting you.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?