Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
URL String with parameters
#1
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
Reply
#2
This site should help you :)
pyzyx3qwerty
"The greatest glory in living lies not in never falling, but in rising every time we fall." - Nelson Mandela
Need help on the forum? Visit help @ python forum
For learning more and more about python, visit Python docs
Reply
#3
(May-06-2020, 12:26 PM)pyzyx3qwerty Wrote: This site should help you :)

Thank you but that example is for Java.
Reply
#4
do you use requests?
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#5
(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
Reply
#6
(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.
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#7
(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?
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#8
(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
Reply
#9
sorry, but I really cannot make sense of what you ask
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#10
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
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020