Re: [PHP] http request problem
On Tue, January 2, 2007 11:55 pm, Kencana wrote: I got problem in getting file content. the file is located at another server (tomcat) and it is a jsp file. i don't know why i keep getting the same error message file accessing that file but while i am trying to access to another file, from another server it run perfect. this is the error message i get: PHP Warning: file_get_contents(http://123.123.1.2:8008/V3JRoute?slot=1startX=103.880764startY=1.335458endX=103.886297endY=1.334953routeType=1format=2) [function.file-get-contents]: failed to open stream: HTTP request failed! $5$13:53:22,13:53:22,13:53:22,13:53:22,13:53:22$0.0,0.0,0.0,0.0,0.0$Depart on,Turn sharp left onto,Continue on,Turn right onto in C:\Program Files\MapGuideOpenSource\WebServerExtensions\www\phpviewersample\xmlaccesstrial.php on line 5 take note that the text in bold is part of the page contents. i don't understand why i cant get the whole content and keep getting this error. I hope somebody can help me out. First, it is entirely possible that the service provided is filtering on request IP and only responds nicely to requests from specific IP servers. This is *very* common in paid-for peer-to-peer business-to-business services. If you have an account with the folks providing this service, just let them know your static IP, and they'll add it to their friend list on their end. If that's not what's going on, I suggest you try using CURL to see if you can get the headers to find out more info about WHY the request is being denied. Or you can use wget --server-response if you don't have curl. Or perhaps Firefox and LiveHTTPHeaders. Or even PHP's fopen/fread. Just use *something* to see the full raw response. -- Some people have a gift link here. Know what I want? I want you to buy a CD from some starving artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] http request problem
hi all, I got problem in getting file content. the file is located at another server (tomcat) and it is a jsp file. i don't know why i keep getting the same error message file accessing that file but while i am trying to access to another file, from another server it run perfect. this is the error message i get: PHP Warning: file_get_contents(http://123.123.1.2:8008/V3JRoute?slot=1startX=103.880764startY=1.335458endX=103.886297endY=1.334953routeType=1format=2) [function.file-get-contents]: failed to open stream: HTTP request failed! $5$13:53:22,13:53:22,13:53:22,13:53:22,13:53:22$0.0,0.0,0.0,0.0,0.0$Depart on,Turn sharp left onto,Continue on,Turn right onto in C:\Program Files\MapGuideOpenSource\WebServerExtensions\www\phpviewersample\xmlaccesstrial.php on line 5 take note that the text in bold is part of the page contents. i don't understand why i cant get the whole content and keep getting this error. I hope somebody can help me out. Thank you Regards, Kencana -- View this message in context: http://www.nabble.com/http-request-problem-tf2911952.html#a8136255 Sent from the PHP - General mailing list archive at Nabble.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] http request problem
hi all, by the way, the page that i am trying to get, i can open the page without any problem in IE 7 browser. Thanks Regards, Kencana -- View this message in context: http://www.nabble.com/http-request-problem-tf2911952.html#a8136297 Sent from the PHP - General mailing list archive at Nabble.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] http request problem
On 1/2/07, Kencana [EMAIL PROTECTED] wrote: hi all, I got problem in getting file content. the file is located at another server (tomcat) and it is a jsp file. i don't know why i keep getting the same error message file accessing that file but while i am trying to access to another file, from another server it run perfect. this is the error message i get: PHP Warning: file_get_contents(http://123.123.1.2:8008/V3JRoute?slot=1startX=103.880764startY=1.335458endX=103.886297endY=1.334953routeType=1format=2) [function.file-get-contents]: failed to open stream: HTTP request failed! $5$13:53:22,13:53:22,13:53:22,13:53:22,13:53:22$0.0,0.0,0.0,0.0,0.0$Depart on,Turn sharp left onto,Continue on,Turn right onto in C:\Program Files\MapGuideOpenSource\WebServerExtensions\www\phpviewersample\xmlaccesstrial.php on line 5 Sounds like you need to make that 'right turn', the only people that could answer this are the people that wrote V3JRoute Curt. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php