Questions tagged [http]
The http tag has no usage guidance.
9
questions
1
vote
1answer
419 views
expected 400 but got 200 OK?
I have implemented Pset-7 (Finance) but check50 shows an error called expected 400 but got 200 in all my apology pages and it is being rejected by check50. Since it successfuly landed to apology page, ...
0
votes
1answer
20 views
How does the cs50 video player update the url in real time?
I´m curious about how the timestamp in the URL gets updated as the video plays. Is the server sending GET requests every second?
0
votes
1answer
157 views
CS50 parse function, HTTP version
I'm working on parse for pset6 and for some reason I can't correctly check the HTTP version. Check50 gives me "\ expected output, not an exit code of 0" which I understand stands for segmentation ...
0
votes
1answer
28 views
Why port no. is required
in pset6 specification, to make request to server, the port no. of the server is noted and included with the ip address of the appliance like http://#.#.#.#.####/cat.jpg. The port no. of the server is ...
0
votes
0answers
72 views
Https for my final project
For my final project I am making a website and I see that the web server of cs50x via which I launch the website is serving the app via http.Then I checked in for all the psets which are using flask ...
0
votes
0answers
394 views
flask redirect(url_for(“endpoint”)) navigates me to ide50blabla:8080/myEndpoint instead of https://ide50blabla:8080/myEndpoint
I submit a file in my js file :
$('#myForm').trigger('submit')
That file is sent to and endpoint and there I redirect to another endpoint where stuff is done, the page is rendered again with ...
0
votes
1answer
108 views
I'm making a route “/Account” to allow user to change password. I'm a bit confused about GET and POST requests
I thought I sort of understood GET and POST requests in that:
GET request means the user only retrieves data from the server; cannot change anything like the database
POST request means the user can ...
0
votes
1answer
26 views
server.c cannot check http_version correctly
I am trying to parse the path but it always gives me the mistake--
I used gdb to trace the value of every char, and find that this line --if (strcmp(http_version,"HTTP/1.1")==0) always turns out to ...
0
votes
1answer
229 views
PSET6 - server.c - 505 Error
When I try to run server.c, it's returning the 505 error, which is very confusing to me. I built the code separating everything out in a separate .c file to make sure everything works correctly, and I ...