Error: Unable to save the file in the folder...... Whats is wrong with this code
ID: 3849118 • Letter: E
Question
Error: Unable to save the file in the folder...... Whats is wrong with this code.?
The below code checks for the HTTP/1.1 200 OK. and if its true it divides tha pathname and hostname and after first slash in the pathname, it saves as the downloading link and have to save in the folder. but it 's not getting saved...
int bytes sent; bytes sent send(sockfd, request strlen(request),0) int byte received; char buffer 10000J; bzero buffer 10000); //to make sure that the buffer is empty, buffer is just a space to store the message and 1024 is the size of it byte received recv (sockfd, buffer, 10000 ,0) if(byte receivedExplanation / Answer
There could be multiple reasons that you are not being able to save this file. Exact solution can not be provided unless you give the error message you are getting. Following are some reasons you might not be able to save it-
1. You are trying to save it with a name that already exist in the folder. Try changing the name of the file.
2. Doyou have the permission to save files in the folder? Check for permissions of the user.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.