Unlunkily this is no option, let me explain why. I want to host my jar file on a different domain/host/webspace because it has:
1. FTP access for its webspace 2. No file size limitation of 1MB 3. most importantly I can set there the mime-type and other things in the header This I cannot do in AppEngine since one cannot set certain attributes in the header, Content-Encoding, Transfer-Encoding, etc.: http://code.google.com/appengine/docs/webapp/responseclass.html#Disallowed_HTTP_Response_Headers It is absolutely vital for my service that I can set these header attributes. If I make an urlfetch in appengine I get the right header from my other host, but can I return this header in my response? I guess not. The best solution would be, that http://my.appspot.com/data/test.jar would be actually pointing to http://myotherhost/data/test.jar. So the test.jar is actually coming from http://myotherhost having the right header, no filesize limitation, etc. If AppEngine would allow me to set the headers I wouldn't need to do this. Cheers, Dieter On Nov 22, 2:12 am, Jeff S <[EMAIL PROTECTED]> wrote: > Hi jago, > > If I understand correctly, it sounds like you are trying to mirror the > jar file and serve it from your app. I think the easiest way to do > this is to upload the jar file, save it as a blob in the datstore, > then create a request handler which will set the response headers to > the desired values and write out the binary file contents from the > blob. > > You might find some helpful hints on creating a blob from an uploaded > file > here:http://code.google.com/appengine/docs/images/usingimages.html#Uploading > and information on setting response headers > here:http://code.google.com/appengine/docs/webapp/redirects.html > > You could also make a urlfetch call to get the jar file from XYZ to > store it in the datastore. > > Does this sound like it fits what you are trying to do? > > Thank you, > > Jeff > > On Nov 20, 8:07 pm, jago <[EMAIL PROTECTED]> wrote: > > > I have a jar-file at another host XYZ. From this host the file is > > returned with a special content- and mime-type in its header. > > > I want the appengine to make the file available at /remote/test.jar > > > If a user then callshttp://myapp.appspot.com/remote.test.jarIwant > > the jar to be returned identically as if it were coming from my host > > XYZ. > > > Identical in every way, including the headers! > > > Can I do this somehow? How? > > > What would you suggest to use: app.yaml, fetch(), redirect, or > > something else? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---
