This page demonstrates handling of GET and POST requests, including basic file upload.
https://dev.fare4z.com/?name=Ali&course=Web&interests[]=JS&interests[]=CSS
Example use an HTML form
<form method="POST" action="https://dev.fare4z.com/">
<input type="text" name="name" placeholder="Name" required> <br>
<input type="text" name="course" placeholder="Course" required> <br>
<input type="text" name="interests[]" placeholder="Interest (e.g. JS)" required> <br>
<input type="text" name="interests[]" placeholder="Interest (e.g. CSS)" required> <br>
<button type="submit">Submit</button>
</form>
Use any HTTP client (HTML form, Postman, or cURL). Example with cURL:
curl -X POST https://dev.fare4z.com/ \
-d "name=Ali" \
-d "course=Web" \
-d "interests[]=JS" \
-d "interests[]=CSS"
uploadedFileExample with cURL (multipart/form-data):
curl -X POST https://dev.fare4z.com/ \
-F "name=Ali" \
-F "course=Web" \
-F "uploadedFile=@/path/to/file.txt"
upload_max_filesize, post_max_size) are sufficient.