Validation of web links blocked by some servers?

Hi
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.
Thanks.

6 comments

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).

0

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:

<a href="http://www.chrise.co.uk/test/test_image_cms.jpg">this works</a>
<a href="http://www.audz.net/test/test_image_cms.jpg">this doesn't work</a>

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?

Cheers

0

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?

0

Interesting! Thanks for looking.

Yes, I can raise it as a bug. What is an idea.log file?

0

Logs of IDE are in:

  • Windows and Linux: ~\.WebIde...\system\log\
  • Mac OS X: ~/Library/Logs/WebIde.../
0

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!

Cheers
Chris

0

Please sign in to leave a comment.