Python Forum

Full Version: URL String with parameters
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hello, please help.
how to get String of requested URL+parameters on server side,
like this "http://example.com?param1=a&token=TOKEN_TO_REPLACE&param2=c"

just want to know, 2 days searching, nowhere found THE UNSWER, Cry
This site should help you :)
(May-06-2020, 12:26 PM)pyzyx3qwerty Wrote: [ -> ]This site should help you :)

Thank you but that example is for Java.
do you use requests?
(May-06-2020, 12:35 PM)buran Wrote: [ -> ]do you use requests?


>>> import requests
>>> r = requests.get('https://api.github.com/events')
>>> r.text

Here is shown url, but I want to get it from request (when someone uses app, sending url+parameter ).

please post how to see it.


To get requested url+parameters
(May-06-2020, 12:42 PM)nikoloz Wrote: [ -> ]please post how to use

To get requested url+parameters
I did posted a link - read the docs. they have excellent examples. I doubt I can provide better explanation than they do.
(May-06-2020, 12:42 PM)nikoloz Wrote: [ -> ]Here is shown url, but I want to get it from request (when someone uses app, sending url+parameter ).
you posted additional info which makes your question unclear
do you want YOU to make request and pass params or are you talking of developing webapp?
(May-06-2020, 12:44 PM)buran Wrote: [ -> ]
(May-06-2020, 12:42 PM)nikoloz Wrote: [ -> ]To get requested url+parameters
I did posted a link - read the docs. they have excellent examples. I doubt I can provide better explanation than they do.

I have no idea why everywhere is urls declared ('http://foo.appspot.com/abc?def=ghi')
if it is unknown while client sends parameters, I want to know how did they get this url String Doh


"are you talking of developing webapp?"
YES Big Grin
sorry, but I really cannot make sense of what you ask
please, don't change post content after you get reply
there are many web frameworks - e.g. Django, Flask, bottle, to name a few. We have tutorials for Flask
https://python-forum.io/Thread-Flask-Sta...ent-part-1
https://python-forum.io/Thread-Flask-Wea...pp-Updatet

You should choose a framework, then we may suggest tutorilas
Pages: 1 2