I know the module name is "HTTP", but I had requests from users about checking FTP links in linkchecker, too.

I know cURL supports a large number of protocols and I don't know about stream stuff, maybe we can support some more. I'm not sure how difficult it is to check CDNs, telnet and some others. At least FTP is a very common case if it comes to link checking and a site provides many FTP links to users. It would be extremely easy if I could just push the FTP links to the HTTPRL module for checking them, too.

Comments

hass’s picture

Issue summary: View changes

s

hass’s picture

Issue summary: View changes

i

mikeytown2’s picture

I believe stream_socket_client() will support ftp. It's just a matter of handling the meta data. http has a lot of meta data, I believe ftp doesn't.

2 Things to keep in mind.
http://php.net/stream-get-wrappers
http://php.net/stream-get-transports

Looks like we (drupal core & httprl) are using a transport (tcp) so we need to issue a bunch of write commands. If we were using a wrapper then it would be a little easier to implement, but I probably wouldn't be able to do things in parallel then.

More reading:
http://rohitiyer2109.blogspot.com/2012/02/simulate-file-transfer-protoco...

mikeytown2’s picture

mikeytown2’s picture

Status: Active » Postponed
Issue tags: +2.x Roadmap

Something to think about for a 2.x release.

mikeytown2’s picture

Issue summary: View changes

n