Query string

Report a typo

Write a program that receives a GET request with query parameters and returns the 200 OK response with the Received beautiful parameters text and the query parameters' names and values separated by semicolons.

For example:
For the request with the following query string: /?name=Bob&age=22&city=Denver

The output is:

Received beautiful parameters! name: Bob, age: 22, city: Denver.

Make sure your code works with any received query string; here are some more examples:

/?city=London&weather=rainy

/?item_type=food&item_name=bread

/?id=4815162342

Write a program in Python 3
from flask import Flask, request, Response, make_response, jsonify

app = Flask('main')

@app.route('URL')
def main_view():
# your code here
___

Create a free account to access the full topic