Hiyasat
Hiyasat

Reputation: 8926

downloading file over http not working but over https working fine

I have the following scenario downloading a file form sever:

I am greatly appreciative of any guidance or help.

Upvotes: 3

Views: 2093

Answers (1)

Yahya Younes
Yahya Younes

Reputation: 710

if (The file is executable file )

May be because the web server for some EXE files resides on doesn't send a
Content-Length header. If this header is absent, the only way you can determine if the download is complete is "when the bytes stop coming", i.e. the TCP/IP connection is closed or times out. If the connection quality is low, this may very well happen prematurely.

But why this not happened in Https? Thats because http has bigger waiting time and smaller receiving time. https on the other hand has smaller waiting time and bigger receiving time.

The http port on the shared hosting server is more busy, thus a request stays longer in the queue until is accepted by the server.

On the https port there is less traffic on the server so the request is serviced faster.

Upvotes: 4

Related Questions