Mark
Mark

Reputation: 4883

HTTP Post to PHP script hosted on unauthenticated FTP server

Is it possible to create a HTTP POST that posts to the PHP script that is hosted on a separate unauthenticated FTP server?

Upvotes: 0

Views: 45

Answers (1)

David
David

Reputation: 219067

No.

POST is an HTTP method, and HTTP requests have a specific protocol structure. FTP, being an entirely different protocol, has an entirely different structure.

FTP servers don't understand HTTP requests, and HTTP servers don't understand FTP requests. (One "server" can handle both, and in such a case would be acting as two distinct services from the perspective of any consuming client.)

If the target page is hosted as a file on an FTP server, then there is no HTTP endpoint to receive the request. There's just a file.

Upvotes: 3

Related Questions