T
T
TERMIK2012-04-20 16:42:33
Python
TERMIK, 2012-04-20 16:42:33

Read URL...?

Good day.
Is it possible to read the URL string from the browser in a Python script? Can anyone come across? Thank you very much in advance!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
S1ashka, 2012-04-20
@S1ashka

Not from a browser. Are you running the script on the server side?
request_uri is not enough for you?

S
S1ashka, 2012-04-21
@S1ashka

#!/usr/bin/python
import os
print os.getenv('HTTP_REFERER')

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question