Erlang/OTP Forums

Author Message

<  Yaws mailing list  ~  no query vars in authmod

Guest
Posted: Thu May 17, 2007 2:56 am Reply with quote
Guest
Hi, I'm running yaws 1.68 (from cean) embedded with an authmod and I've discovered that in authmod:auth(A, Auth), A has no query vars. Regular appmods can get the query vars with yaws_api:parse_query or yaws_api:queryvar, but I just get an empty list or undefined in the authmod.
Here's the relevant GC and SC I load with yaws_api:setconf

GC = #gconf{yaws_dir=yaws_config:yaws_dir(),
Guest
Posted: Sun May 20, 2007 7:27 pm Reply with quote
Guest
Jacob Perkins wrote:
> Hi, I'm running yaws 1.68 (from cean) embedded with an authmod and I've
> discovered that in authmod:auth(A, Auth), A has no query vars.

Query args are passed in there as usual. You sure there really are any
query args actually passed in the HTTP request. Check with e.g curl

/klacke

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist
Guest
Posted: Sun May 20, 2007 11:55 pm Reply with quote
Guest
On 5/20/07, Claes Wikstrom <klacke@tail-f.com (klacke@tail-f.com)> wrote:
Quote:
Jacob Perkins wrote:
> Hi, I'm running yaws 1.68 (from cean) embedded with an authmod and I've
> discovered that in authmod:auth(A, Auth), A has no query vars.

Query args are passed in there as usual. You sure there really are any
query args actually passed in the HTTP request. Check with e.g curl

/klacke

The query data in the request url, but I don't think yaws has parsed it yet. yaws_api:queryvar and yaws_api:parse_query return undefined and []. I can get the data from the url, but it would be nicer if the yaws functions worked.

Jacob





Post recived from mailinglist

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum