I have troubles with the parse function in pset6 server.c. Only two items in the check fails. Im really struggling undertanding what the error messages means, anyone here that understands?
If the error is that method is abcGET or GETabc then my code checks for this(i think)abcGET;
> if(line[0]!='G' && line[1]!='E' && line[2]!='T' && line[3]!=' ')
> {
> error(405);
> return false;
> }
return false;[
makes me wonder: did you type this code into the question, or copy/paste from the IDE? (because of the trailing '['). This code snippet on it's own looks fine.One possibility is this is not the exact code you are running. Or there is another problem in parse function causing the error. For instance, if you are testing for something likeline[4] != '/'
before this test, the program may be throwing a 501 and not even getting to this routine. Or something else entirely. Not enough info to evaluate more. debug50 and/or gdb are your friends. – DinoCoderSaurus Oct 7 '16 at 13:49