Questions tagged [webserver]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
172 views

DeprecationWarning: 'werkzeug.contrib.cache' is deprecated as of version 0.15 and will be removed in version 1.0

I am running a modified version of pset7/finance for my final project, and after running an algorithm to load data into a db, I am interacting with that db with "Flask Run". I am getting a 500 ...
1
vote
2answers
111 views

What is a web server?

MDN states that a web server is a computer hosting one or more websites. However, in the CS50 lecture on Flask, at 41:37, Brian mentioned that the Flask class was imported from the flask module to ...
0
votes
1answer
362 views

Pset 6 - Webserver returns 400 Bad Request

My code passes check50 fine. But when I attempt to run my webserver, I keep getting a 400 error whenever I try to "submit" Here's my .html file. I can't imagine that this is the problem as I tried ...
0
votes
2answers
425 views

Webserver no longer working?

I attended the CS50 Spring course, and still use the CS50 IDE. However, as of late my webserver is no longer working! I'm getting the following message in Chrome: This site can’t be reached The ...
0
votes
0answers
76 views

Pset6 2017 Sentiments WebServer running problem

I have a problem running Pset6. I'm following instructions. I have set access rights, run flask and then click "CS50 IDE" -> "Web Server" in the left top corner and have an exception "Error opening ...
0
votes
1answer
68 views

Pset6, Web Server, Grade

My web server in pset6 successfully passed check50 but I got a grade of "only" 0.96. All test cases got a 1 except for “Two spaces after GET returns error code” which is graded a 0. Any ideas how this ...
0
votes
1answer
174 views

pset6 preparations: can't access an IDE web server page without authenticating

I'm working through the first week 7 lecture (edx student). I've turned on the Cloud9 web server with: apache50 start . It gives me the URL at which my site is available. I can click on that link ...
0
votes
1answer
70 views

Pset6 requesting /test/ works but it fails check50

I'm almost there, I already solved a lot of problem, and I'm hoping that's the last one... that is the result of check50 :) server.c exists :) server compiles :) Requesting cat.jpg returns 200, ...
0
votes
2answers
38 views

double free or corruption in Pset6 server.c

I get a double free or corruption error message on my server.c, although I am not freeing any thing in my functions. I also tested my functions and they are all working properly supposedly. Can any ...
0
votes
1answer
42 views

Problem Set6 the web Server

How Much should I understand of server.c ? There are too much code and too many functions. I can understand most of it, however there are certain line that I don't understand yet; For example the big ...
0
votes
1answer
220 views

PSet6 Load function doesn't load any image

My load function doesn't seem to load any image, but it always says "200 OK". For example: cat.jpg doesn't load in the browser, but the message with OK always shows up. Code: bool load(FILE* file, ...
0
votes
1answer
189 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
543 views

pset6 (webserver) - hello.php not loading properly [duplicate]

Everything is working except for hello.php. In the load function I try to obtain the length of the file passed to it as shown, but when hello.php is interpreted and the load function is called, it ...
0
votes
1answer
323 views

pset6 problem with webserver [duplicate]

I finished pset6 (No, not really!) :( when i test the webserver as follows: enter my appliance IP followed by port 8080 then /cat.jpg i got: 505 HTTP Version Not Supported does anyone know what is ...
1
vote
0answers
535 views

pset6(Web Server) - Load function does not work [duplicate]

For some reason the load function within the distro does not seem to work and I cannot load files I'm attempting to access through a web browser. When I attempt to access content the web browser ...
0
votes
0answers
69 views

What to do in Pset 6 Web Server? [duplicate]

Up until Pset 5, CS50's lectures, shorts and walkthroughs were pretty helpful in not getting me stuck at a problem. However, as we transition to web based programming, I'm entirely clueless about what ...
0
votes
0answers
481 views

CS50 Stuck on pset 6: web server

I'm stuck on pset6. I keep getting error 404 and cannot figure out what is wrong. Please help. // TODO: concatenate root and absolute-path char *a; char *b; if (strchr(...
0
votes
0answers
82 views

Unable to load multiple requests pset6

When attempting to do pset 6, I wasn't able to display the 2nd file requested to server, even though the server returns HTTP/1.1 200 OK for both files. For example, when sending request for a HTML ...
0
votes
1answer
683 views

Pset 6 Web Server, Code works with Telnet but encounters Error 405 on the Browser

I've have been working on this problem set for quite some time now and I thought I have completed it. All of the functions were working fine when I used Telnet to submit the requests. My program is ...
1
vote
1answer
594 views

cat.jpg not displaying in cat.html

I've gotten all functions of server.c to work, including displaying hello.html successfully. However, when I attempt to access cat.html, program is not displaying the image. The chrome developer ...
0
votes
1answer
653 views

pset6 (server.c) content length

I am repeatedly getting ERR_CONTENT_LENGTH_MISMATCH in Chrome's Network Status tab when trying to load any file in the appliance's browser. This is despite the content loading correctly when I run it ...
1
vote
0answers
971 views

How to run my copy of server.c

I am sure this is a stupid question, but I am struggling to workout how I actually run my version of server.c in pset6. Do I need to compile it? Whenever I try and "make" the file, terminal reports ...
0
votes
1answer
456 views

Is it possible to code lookup function without malloc?

I have finally managed to have my WebServer working, but I would like to improve my implementation of the "lookup" function. The only option that avoided segfaults was to malloc a char* and use it as ...