Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7718019
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T03:03:38+00:00 2026-06-01T03:03:38+00:00

I’m trying to pass parameter from python page to another through the URL,this parameter(key

  • 0

I’m trying to pass parameter from python page to another through the URL,this parameter(key in my problem)is passed correctly but in the other page i have this code:

from google.appengine.ext import blobstore
from google.appengine.ext import webapp
from google.appengine.ext.webapp import blobstore_handlers
from google.appengine.ext.webapp.util import run_wsgi_app
import urllib
import urllib2        
class ServeHandler(blobstore_handlers.BlobstoreDownloadHandler):
    def get(self):

          blob_key = self.request.get('key')
          blob_key = str(urllib.unquote(blob_key))
          blob_info = blobstore.BlobInfo.get(blob_key)
          self.send_blob(blob_info)

def main():

     application = webapp.WSGIApplication(
    [('/',ServeHandler),], debug=True)
    run_wsgi_app(application)

if __name__ == '__main__':
    main()

but the problem that class ServeHandler(blobstore_handlers.BlobstoreDownloadHandler):didn’t execute ,when i ran this code, the output is

Status: 404 Not Found
Content-Type: text/html; charset=utf-8
Cache-Control: no-cache
Expires: Fri, 01 Jan 1990 00:00:00 GMT
Content-Length: 0

although the parameter is passed correctly;this is the url and the key(parameter):

http://localhost:8080/download.py?key=vzsX4xM1EtNak5RQVxj4BQ==

EDIT:
This is my app.yaml code:

application: myapplication
version: 1
runtime: python
api_version: 1

handlers:
- url: /compress.py
  script: compress.py
- url: /download.py
  script: download.py
- url: /decompress.py
  script: decompress.py
- url: (.*)/
  static_files: static\1/index.html
  upload: static/index.html

Please i want a solution for this problem ?any suggestions are welcome.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T03:03:39+00:00Added an answer on June 1, 2026 at 3:03 am

    /download.py isn’t even in your app.yaml.
    How would webapp find the correct script to run?

    Concentrating for now on the download script, this is an example of how your app.yaml should look:

    handlers:
    - url: /.*
      script: download.py
    

    Edit:
    Alternatively, you can specify a more-specific regexp-pattern for the download URL:

    def main():
        application = webapp.WSGIApplication([
                (r'/download.*', ServeHandler),
            ], debug=True)
    

    And the URL would be something like:

    http://localhost:8080/download?key=vzsX4xM1EtNak5RQVxj4BQ==
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Basically, what I'm trying to create is a page of div tags, each has
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I am currently running into a problem where an element is coming back from
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
Does anyone know how can I replace this 2 symbol below from the string
I am trying to loop through a bunch of documents I have to put
I am trying to understand how to use SyndicationItem to display feed which is
link Im having trouble converting the html entites into html characters, (&# 8217;) i

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.