Linked Questions

1
vote
2answers
1k views

Help with .php files in Pset6 -> Load

Me again, still in pset6, right now working on "load", I did this so far: bool load(FILE* file, BYTE** content, size_t* length) { fseek(file, 0, SEEK_END); long size = ftell(file); fseek(...
0
votes
2answers
529 views

Pset6 problem in indexes and load function

Check 50 returns a lot of errors https://sandbox.cs50.net/checks/caefd03d8ac2485b820743724297b846 Edit: New check50 https://sandbox.cs50.net/checks/fa32659c01b742b78c18f1568d48b90d My load function ...
0
votes
1answer
429 views

Pset6 check50 version 2 error

My check50 version 1 gives all :) but version 2 gives this result :) server.c exists :) server compiles :( Requesting cat.jpg returns 200, image/jpeg, and correct image :) Requesting cat.html ...
0
votes
1answer
261 views

pset6: what does check50 “TODO” error mean?

When I run ./server, it seems all working good. All files in root been opend correctly. But when I checking my code with Check50, it show me errors "TODO". It can be seen in the screenshot. What does ...
0
votes
1answer
293 views

pset6 almost there (I think) but don't know how to get rid of remaining errors

I have been working on this pset for a long time. When I run check50 now, there are three remaining errors: :( Requesting hello.php? returns 200, text/html, and correct output \ expected output, ...
0
votes
1answer
222 views

My server.c parse function fails in cs50 check

I have updated this according to your suggestion. And it is giving different results everytime with check50.sometimes it says some are right and other times others are right. I am totally confused ...
0
votes
1answer
190 views

Indexes function playing a sort of infinite loop

My indexes function recognizes some file's names (not all) and then continues to throw out garbarge data '\000' as file names. Here is the code I wrote for indexes: char* indexes(const char* path) { ...
0
votes
1answer
136 views

Pset6 Server.c check50 giving errors even though the program is working perfectly

My server.c code is working perfectly but my check50 is showing errors. Even my cat image is loading. I've tried everything and honestly don't even know anymore which function might be creating ...
0
votes
1answer
95 views

How to troubleshoot PSET6 after compilation

The following is the output when I run "./server public" It took me forever to get the code to the point where it would compile, and I am trying to run valgrind, but valgrind didn't find any problems....
0
votes
1answer
87 views

Parse function not returning error codes

My code compiles, but the cs50 says it's returning 0 when it should be returning error codes. The premise of my function is to break the line into method, request-target, and HTTPversion and then ...
0
votes
1answer
64 views

pset6 server trapped in if (connected())

I am so frustrated by pset6, so much unfamiliar stuff here...... please help! I have written all the 4 to-do functions, however if I go to the web server, no matter what I clicked, it shows no more ...
0
votes
0answers
71 views

Server.c failing test 1 with all the same error code

I have finally compiled my pset6 (took me quite a while...) but now I'm running into a problem. When I ran the first check50 all the tests are giving me a error code of: "\ expected output, not an ...
0
votes
1answer
51 views

Why can I not get any error except 405 (and once 501) here?

I've been working my way through PSET6, and most of it's been fine, until now. When I check the program in check50, it shows me that the first two (existing and compiling), the 5th (checking if GETabc ...
0
votes
1answer
32 views

Parse problem [505] and no one can find the problem :O

This is my parse function: I keep getting a 505 error and I can't wrap my head around what is going wrong. Why can't my code figure out that the line is GET / HTTP/1.1 I hope someone could help me ...