Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Local HTTPRequest

Hi!

Is it possible to fetch a local file packaged within the app using the HTTPClient? If so - how?

Thanks in advance
/Jacob

— asked March 29th 2010 by Jacob Waller
  • http
  • http-client
  • httpclient
  • local
0 Comments

3 Answers

  • Something like….

    var webview = Ti.UI.createWebView();
    webview.url = 'local_webview.html';
    win1.add(webview);

    See Kitchen sink example too.

    — answered March 29th 2010 by Eldon Benz
    permalink
    0 Comments
  • Hi!
    Thanks, but unfortunately that's not what I'm after.
    I'd like to fetch the contents of a local file, be it an html file, a text file or something else. I wonder if this is possible using the HTTPClient, but I can't seem to find the right prefix (http://, file://, app://) or anything else that could solve it.

    Any other takes?

    — answered March 29th 2010 by Jacob Waller
    permalink
    0 Comments
  • I would like to know about this too.
    Bump.

    — answered June 16th 2011 by Karanveer Singh
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.