I have a situation where I need to send a GET request inside another GET request.
http://domain.com/data?Message=ItsMyMessage&Photo=http://photodomain.com/photo?FileType=1&type=png
This is not working!
So, how should I able to do it?
edit: I am working on Django
edit:
Working:
http://myapple.pagekite.me/photo?friend_from=Surya&friend_to=Sophie&image_url=http%3A%2F%2Fmyapple.pagekite.me%2F%2Fimg%3FFileName%3Dpic5.png%26Message%3DHi%2520
Not working (when I publish to Facebook, its getting converted to below):
http://myapple.pagekite.me/photo?friend_from=Surya&%3Bfriend_to=Sophie&%3Bimage_url=http%3A%2F%2Fmyapple.pagekite.me%2F%2Fimg%3FFileName%3Dpic5.png%26Message%3DHi%2520
Note: In the above two code snippets, & was converted to &%3B
You have to url encode the secondary parameters. Then decode them in your code and send them off.
In pure Python you probably will do something like:
Resulting in:
Credits to O’reilly
http://www.oreillynet.com/pub/h/476
Maybe Django offers some shortcuts here. But I wouldn’t know.