webOS Nation Forums >  webOS apps and software >  webOS development > how to add "customHttpHeaders"
how to add "customHttpHeaders"

  Reply
 
LinkBack Thread Tools Display Modes
Old 06/19/2010, 09:30 AM   #1 (permalink)
Member
 
Join Date: Jun 2010
Posts: 15
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Question help me!!!

this.controller.serviceRequest('palm://com.palm.downloadmanager/', {
method: 'download',
parameters:
{
target: "web link",
mime : "application/xls",
targetDir : "/media/internal/files/",
targetFilename : "my-override-filename.xls",
keepFilenameOnRedirect: false,
subscribe: true
},
onSuccess : function (resp){Mojo.Log.info(Object.toJSON(resp))},
onFailure : function (e){Mojo.Log.info(Object.toJSON(e))}
});

how to add "customHttpHeaders" like upload method? help me
zhengjianli is offline   Reply With Quote
Old 06/19/2010, 09:45 AM   #2 (permalink)
Member
 
Join Date: Jun 2010
Posts: 15
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Question how to add "customHttpHeaders"

this.controller.serviceRequest('palm://com.palm.downloadmanager/', {
method: 'download',
parameters:
{
target: "url",
mime : "application/xls",
targetDir : "/media/internal/files/",
targetFilename : "my-override-filename.xls",
keepFilenameOnRedirect: false,
subscribe: true
},
onSuccess : function (resp){Mojo.Log.info(Object.toJSON(resp))},
onFailure : function (e){Mojo.Log.info(Object.toJSON(e))}
});

how to add "customHttpHeaders" in download like upload method?
zhengjianli is offline   Reply With Quote
Old 06/19/2010, 11:30 PM   #3 (permalink)
Member
 
Join Date: Jun 2010
Posts: 15
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy where my post

??
zhengjianli is offline   Reply With Quote
Old 06/19/2010, 11:31 PM   #4 (permalink)
Homebrew Developer
 
Join Date: Jul 2011
Posts: 126
Likes Received: 68
Thanks: 43
Thanked 3,129 Times in 2,010 Posts
Default

Where did you have it last? Retrace your steps...
__________________
Twitter: @ChoorpStudios
Like my work and want to donate? You can do so here.
Garrett92C is online now   Reply With Quote
Old 06/19/2010, 11:35 PM   #5 (permalink)
Member
 
Join Date: Jun 2010
Posts: 15
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to add "customHttpHeaders"

this.controller.serviceRequest('palm://com.palm.downloadmanager/', {
method: 'download',
parameters:
{
target: "web url",
mime : "application/xls",
targetDir : "/media/internal/files/",
targetFilename : "my-override-filename.xls",
keepFilenameOnRedirect: false,
subscribe: true
},
onSuccess : function (resp){Mojo.Log.info(Object.toJSON(resp))},
onFailure : function (e){Mojo.Log.info(Object.toJSON(e))}
});

how to add "customHttpHeaders" in download method like upload method?
help me !
zhengjianli is offline   Reply With Quote
Old 06/19/2010, 11:40 PM   #6 (permalink)
Member
 
Join Date: Jun 2010
Posts: 15
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Garrett92C View Post
Where did you have it last? Retrace your steps...
when i submit a new post, it note me
" Thank you for posting! Your post will not be visible until a moderator has approved it for posting. You will now be taken back to the forum. If you opted to post a poll, you will now be allowed to do so."

but this post submit not have it
zhengjianli is offline   Reply With Quote
Old 06/19/2010, 11:45 PM   #7 (permalink)
Member
 
Join Date: Jun 2010
Posts: 15
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy how to add "customHttpHeaders"

in "download manager" download method how to add "customHttpHeaders" like upload method ? help me !
zhengjianli is offline   Reply With Quote
Old 06/19/2010, 11:47 PM   #8 (permalink)
Neumorator (Super Moderator)
 
HelloNNNewman's Avatar
 
Join Date: May 2009
Location: Standing silently behind you on the streets of Chicago..... wearing a Cheesehead.
Posts: 11,418
Likes Received: 1358
Thanks: 6,186
Thanked 4,799 Times in 3,119 Posts
Default

You have a couple that you have started located here:

http://forums.precentral.net/web-os-...ml#post2505688

http://forums.precentral.net/web-os-...le-upload.html

Look to be right were you left them

***Remember... at the bottom of the list of posts are lists of pages. If your post isn't showing in the first page, click on the second page, etc...
__________________
Shortest. Marathon. Evar.
Check out the new "Apollo" app (Pandora for the Touchpad)!! Please DONATE and show support to the great devs!

HelloNNNewman is online now   Reply With Quote
Old 06/19/2010, 11:54 PM   #9 (permalink)
Member
 
Join Date: Jun 2010
Posts: 15
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I think it's because in my post body include some code !
now i post one successed, waiting help
zhengjianli is offline   Reply With Quote
Old 06/20/2010, 12:00 AM   #10 (permalink)
Member
 
Join Date: Jun 2010
Posts: 15
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Default

why nobody help me ??
zhengjianli is offline   Reply With Quote
Old 06/20/2010, 12:36 AM   #11 (permalink)
Tazmorator (Chief Mod)
 
berdinkerdickle's Avatar
 
Join Date: Dec 2005
Location: P|C when the light below is green. Otherwise; I could be just about anywhere.
Posts: 10,721
Likes Received: 223
Thanks: 3,116
Thanked 2,773 Times in 1,851 Posts
Default

<<merged>>

Please keep your request for help here.





.
__________________

Just call me Berd.
berdinkerdickle is offline   Reply With Quote
Thanked By: HelloNNNewman
Old 06/20/2010, 07:25 AM   #12 (permalink)
Member
 
Join Date: Jun 2010
Posts: 15
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Default

where my help!!!!!???
zhengjianli is offline   Reply With Quote
Old 06/20/2010, 12:02 PM   #13 (permalink)
Homebrew Developer
 
Join Date: Aug 2009
Location: Midlothian, VA
Posts: 1,218
Likes Received: 8
Thanks: 1,046
Thanked 485 Times in 260 Posts
Default

Quote:
Originally Posted by zhengjianli View Post
where my help!!!!!???
Why don't you stop virtually shouting and just wait patiently for help. Keep in mind this is a COMMUNITY forum managed by a COMMUNITY and NOT by PALM.

Regardless, the attitude you are showing is unacceptable and is typically considered rude by 99% of the world's population. So please take a breath and BE PATIENT.
__________________
Arthur Thornton
webOS Application Engineer, Appstuh
Writer, webOS Nation

My Websites:
http://www.arthurthornton.net
My apps:
Sparrow for Twitter
Voice Memos
Arthur Thornton is offline   Reply With Quote
Old 06/20/2010, 12:04 PM   #14 (permalink)
Homebrew Developer
 
Join Date: Jul 2011
Posts: 126
Likes Received: 68
Thanks: 43
Thanked 3,129 Times in 2,010 Posts
Default

OP, you might have better luck on the Palm Developer forums.
Garrett92C is online now   Reply With Quote
Old 06/20/2010, 12:51 PM   #15 (permalink)
Member
 
TopTongueBarry's Avatar
 
Join Date: Apr 2006
Posts: 1,676
Likes Received: 151
Thanks: 335
Thanked 416 Times in 223 Posts
Default

Quote:
Originally Posted by Garrett92C View Post
OP, you might have better luck on the Palm Developer forums.
Ya think? Maybe he'd have better luck with Palm Support, they're used to having to calm down frustrated folks on the other end of the line .....


Same ol' song and dance .....
Eminem c 2009
__________________
----------------------------------------------------------------------------------------------------
I am an AT&T employee and the postings on this site are my own and don’t necessarily represent AT&T’s positions, strategies or opinions.
TopTongueBarry is offline   Reply With Quote
Old 06/20/2010, 09:10 PM   #16 (permalink)
Member
 
Join Date: Jun 2010
Posts: 15
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm sorry...
zhengjianli is offline   Reply With Quote
Reply

 

Tags
customhttpheaders, download

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0