Hello all, i am going through one application, the main task is to read a file from url for example
iam using unix environment iam setting this path to one environment variable. through which iam reading port as :80, protocol as:http and iam opening url connection through some function and through which iam reading filedescriptor iam getting some number(non zero) which iam giving for ifstream and reading through rdbuf(),but this is not executing, so please can you tell what are the necessary steps that are required in order to read a file from url. aim using socket programming for this.
Hello thank you, for reply yes it i correct that iam using unix with c++,but i thought of asking the suggestions as you people give good suggestion, my question is iam using http protocol to connect, though which iam sending server name
so my question is when i type this URL with file that particular file should get opened ,sorry that i cant send the code because it is very huge, so please tell how it can be done iam usng socket programming for this.