Questions tagged [http]
For code that acts as a HTTP client or server.
406
questions
4
votes
1
answer
105
views
Writing a HTTP server in C
Code
...
4
votes
0
answers
115
views
A simple local API proxy
Recently I needed to support someone who wanted to ingest some data from on of our API's but had tooling that struggled with the authentication bit. While I'm sure there are some off-the-shelf ...
2
votes
1
answer
58
views
3
votes
1
answer
167
views
Get HTTP status of many URLs
I'm brand new to using rust, so please bear with me. I'm trying to write a rust program which takes two arguments: A URL, and a wordlist. This wordlist has the following contents, and is several ...
3
votes
1
answer
121
views
HTTP Request-Line parser
I am trying to write an HTTP/1.0 (RFC 1945) parser in C, so I started with the Request-Line. Ideally, the parser should return one of the three:
The request is valid.
The request is malformed, but ...
5
votes
1
answer
99
views
Small HTTP client/SDK created using libcurl in C language
I created a SDK in C for my Rust project (a key value store in Rust). It should give access to the HTTP routes in a simple manner. (I never worked with C outside of university.)
I used:
...
1
vote
1
answer
77
views
URL healthcheck script
Task:
develop a CLI utility for HTTP Health check at a given URL.
The check is performed in a cycle with a specified interval. On each iteration of the HTTP GET activity on the given URL.
There are ...
1
vote
0
answers
67
views
Calculate total running time for movie series
Which of these 2 functions is better and more readable and why? (Both functions do the same thing).
My goal is to get the total time of a series, using the TMDB API (which has a limit of 20 different ...
1
vote
1
answer
207
views
HTTP routing with Mongoose
I'm trying to extend the Mongoose RESTful server example with URL routing.
This code relies on the Mongoose library available here.
This is heavily inspired by the routes class from this question but ...
3
votes
1
answer
37
views
Open the best Reddit posts with Nim
I wanted to try out the Nim language so I wrote a simple program to retrieve the top \$n\$ messages on a given subreddit in a given time frame and open them in the default browser.
I would really ...
3
votes
0
answers
236
views
System to automatically login to my university's Wi-Fi network using HTTP request
What is this?
My university's Wi-Fi network requires students to visit a specific URL and login to the network before we can use the actual internet. This project replicates that same process by ...
2
votes
1
answer
4k
views
HttpClient retry handler on response 429
When the remote server returns a 429 (Too Many Requests) response with the Retry-After header, the HttpClient can handle such cases with a handler:
...
6
votes
2
answers
363
views
PHP readfile() with 304 Not Modified and HTTP 206 Partial Content support: httpreadfile
I wanted a readfile with 304 Not Modified and 206 Partial Content support, I think i got right, but probably spent way more effort on error-checking than worthwhile.. Also I didn't develop it by ...
1
vote
0
answers
50
views
Object to make GET, POST, PUT and DELETE requests
I am trying to build an object that group all methods to make http GET, POST, PUT, DELETE requests with fetch API. I would like to accept objects and formData without having to specify the content ...
12
votes
2
answers
4k
views
Python script that pulls in and display a random xkcd comic
This script is supposed to download query xkcd json interface, find the total number of comics till date, pick a random number in that range, use the xkcd json interface again to find the comic image ...