Forums

Welcome Guest Search | Active Topics | Members

request parameters not being sent everytime Options
wbakkar
Posted: Friday, April 04, 2008 9:13:12 AM
Rank: Newbie
Groups: Member

Joined: 3/24/2008
Posts: 3
Points: 9
did anyone ever have the following problem:

i'm integrating the aurigma image uploader with my company's product.
the action url has parameters set in it.
everytime i try to upload some image, the first request doesn't have the list of parameters set in the "action".
when the upload fails, the uploader tried again.
on the second attempt, all parameters are set correctly, and the upload is successful.
Fedor
Posted: Friday, April 11, 2008 8:18:28 AM

Rank: Advanced Member
Groups: Administration , Member

Joined: 7/28/2003
Posts: 1,140
Points: -396
Location: WA, US
Could you post the code you use?

Best regards,
Fedor Skvortsov
wbakkar
Posted: Tuesday, April 15, 2008 2:33:40 AM
Rank: Newbie
Groups: Member

Joined: 3/24/2008
Posts: 3
Points: 9
I solved my problem for the moment, but this seems to be an aurigma bug.
the problem appears when using an action that looks like:
iu.addParam("Action", "someBaseUrl;jsessionId=sessionId?paramName=paramValue&paramName2=paramValue2");

when the jsessionId is included in the postUrl, aurigma is posting the selected files to the baseUrl without including any of the parameters.
This fails the upload.
When the upload fails, aurigma sends the request again (because of the retry setting), but this time to the correct complete url.

I solved my problem for the moment by not sending the jsessionId, which would make it fail on a browser where cookies are not enabled.
Fedor
Posted: Tuesday, April 15, 2008 8:20:12 AM

Rank: Advanced Member
Groups: Administration , Member

Joined: 7/28/2003
Posts: 1,140
Points: -396
Location: WA, US
It seems the problem is in semicolon:

According Action property documentation you can have several URL separated with semicolons:

Quote:
A string that specifies the URL to the page files are posted to. You can specify several URLs in this property. They should be separated by a semicolon character (;). Note that if you need this character in your URL string (like in this one: http://upload.server.com/uploadFile;jsessionid=123?param=value), you need to URL-encode it, that is replace the semicolon character with the %3B sequence.


So way try to upload to:

Code:
u.addParam("Action", "someBaseUrl%3BjsessionId=sessionId?paramName=paramValue&paramName2=paramValue2");


It should help.

Best regards,
Fedor Skvortsov
wbakkar
Posted: Wednesday, April 16, 2008 12:19:34 AM
Rank: Newbie
Groups: Member

Joined: 3/24/2008
Posts: 3
Points: 9
sorry, this was clearly noted in the documentation of the Action property but i didn't notice it.
Thank you for your help.
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

YAFVision Theme Created by Jaben Cargman (Tiny Gecko)
Yet Another Forum.net version 1.9.1.6 running under Cuyahoga.
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.