HTTP Запрос

grin

Guest
HTTP Запрос

Такая проблема, есть IIS под виндой, открываем браузер IE, идем на этот IIS и смотрим хидеры:
PHP:
GET /pay/authorize.aspx HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
Referer: [url]http://*******/pay/index.aspx[/url]
Accept-Language: ru
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; НИИ Баца; .NET CLR 1.1.4322)
Host: *******
Connection: Keep-Alive
Cookie: ASP.NET_SessionId=licbwl3xmz4heryefc; .ASPXAUTH=31155A1E16DAC30FC033240ACC61751041B2EF

HTTP/1.1 200 OK
Date: Sat, 13 May 2006 00:00:48 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 1.1.4322
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 13741

Ну и сам контент страницы

берем CURL делаем такой же запрос.

$header[] = "GET /pay/authorize.aspx HTTP/1.1";
$header[] = "Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*";
$header[] = "Referer: [url]http://*******/pay/index.aspx[/url]";
$header[] = "Accept-Language: ru";
$header[] = "Accept-Encoding: gzip, deflate";
$header[] = "User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; НИИ Баца; .NET CLR 1.1.4322)";
$header[] = "Host: *******";
$header[] = "Connection: Keep-Alive";
$header[] = "Cookie: ASP.NET_SessionId=licbwl3xmz4heryefc; .ASPXAUTH=31155A1E16DAC30FC033240ACC61751041B2EF";

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://*******/pay/authorize.aspx");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_HEADER, 1);
curl_setopt ($ch, CURLOPT_VERBOSE, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
$data = curl_exec($ch);

и смотрим что же там передается:

GET /pay/authorize.aspx HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
Referer: [url]http://*******/pay/index.aspx[/url]
Accept-Language: ru
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; НИИ Баца; .NET CLR 1.1.4322)
Host: *******
Connection: Keep-Alive
Cookie: ASP.NET_SessionId=licbwl3xmz4heryefc; .ASPXAUTH=31155A1E16DAC30FC033240ACC61751041B2EF

HTTP/1.1 500 Internal Server Error
Date: Sat, 13 May 2006 00:12:22 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 1.1.4322
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 3026

И все :( То что сессия живая и с куками все ок абсолютно точно.
IIS на эту 500 ошибку выдает:

Server Error in '/' Application.



Runtime Error




Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.




Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".





<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>






Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.





<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>
в чем может быть проблема? доступ до скрипта и до самого IIS не имею. да и не нужен он думаю, в браузере же работает.
 
Сверху