I notice that resource validation works on some servers but not others; in other words http://www.server1.com/index.htm will show up as existing but http://www.server2.com/index.htm does not. Presumably this is due to server 2 blocking the ping or whatever it is that phpstorm sends out to validate the file. Could someone give me a clue about how I get server2 to respond properly to phpstorm? I'm guessing it's some sort of firewall/port issue.
Actually, we send GET http request to the URL. If we get valid response with code differning from OK (200) and TIMEOUT (408), then we highlight the link as unresoved. Also we consider the link as unresolved if we get "unknown host" error, but there is some "known" host in the file (that means internet connection seems to be available).
Thanks for your reply. I've examined the headers of the files that cannot be reached and they both appear to return the 200 OK message, so I'm still a bit stumped.
I've set up a test file. In phpstorm I have two links:
The files being linked are the same but on different servers. The first one is fine but the second line is shown as an error.
HTTP reponse from the first (working) is:
Date: Tue, 21 Feb 2012 11:16:56 GMT Server: LiteSpeed Accept-Ranges: bytes Etag: "8fd-4f437cd3-0" Last-Modified: Tue, 21 Feb 2012 11:15:31 GMT Content-Type: image/jpeg Content-Length: 2301 Cache-Control: max-age=604800 Expires: Tue, 28 Feb 2012 11:16:56 GMT 200 OK
Response from the second (non-working) is:
Date: Tue, 21 Feb 2012 11:17:19 GMT Server: Apache Last-Modified: Tue, 21 Feb 2012 11:14:22 GMT Etag: "6280109-8fd-4b977835beb0a" Accept-Ranges: bytes Content-Length: 2301 Content-Type: image/jpeg 200 OK
Can you see any reason for the difference in behaviour?
Unfortunatelly I cannot reproduce it. BTW, it seems like a bug. Could you, please, create an issue in our tracker and attach idea.log file?
Interesting! Thanks for looking.
Yes, I can raise it as a bug. What is an idea.log file?
Logs of IDE are in:
I've bounced it off my hosting provider and they've discovered it's a firewall issue. Apparently PhpStorm's look-ups had got me blacklisted as a troublesome web crawler!!
Thanks for your help Eugene. It's so nice to see the red links turn blue again!