Your problem is in misunderstanding HTTP.  Sending an 'Authorize' header in
a response, will not cause the client to resend that Authorize header in a
later request.  It just doesn't actually work that way.  Pyramid is happy
to let you send the Authorize header, it is not actually a valid HTTP
header for the response.

Maybe you want a cookie instead.

Chris

On Mon, Jan 12, 2015 at 10:08 AM, QLands Software <qlands.softw...@gmail.com
> wrote:

> Hi,
>
> I have an application where I have a view called "Feeds" as this:
>
> @view_config(route_name='feeds', renderer=
> 'templates/feeds/list_feeds.html')
> def feeds_view(request):
>
>     print "**************"
>     for key in request.headers.keys():
>         print key
>     print "**************"
>
>
>     commonCSS.need()
>     commonJS.need()
>     siteScript.need()
>     dataTables.need()
>     login = authenticated_userid(request)
>     user = USERS.get(login)
>     if (user == None):
>         return HTTPFound(location=request.route_url('login'))
>     else:
>         return {'activeUser': user,'publicFeeds':loadPublicFeeds(user.
> login),'privateFeeds':loadPrivateFeeds(user.login)}
>
>
>
> In a different view I use HTTPFound to as redirect to "feeds" but I am
> passing an extra value in the headers:
>
> headers = {"Authorization": "864a2de6-074a-4fd7-a24e-48400183869e"}
> return HTTPFound(location=request.route_url('feeds'),headers=headers)
>
>
>
> However the "feeds" view does not seem to get it. What am I doing wrong?
>
>
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "pylons-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to pylons-discuss+unsubscr...@googlegroups.com.
> To post to this group, send email to pylons-discuss@googlegroups.com.
> Visit this group at http://groups.google.com/group/pylons-discuss.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pylons-discuss+unsubscr...@googlegroups.com.
To post to this group, send email to pylons-discuss@googlegroups.com.
Visit this group at http://groups.google.com/group/pylons-discuss.
For more options, visit https://groups.google.com/d/optout.

Reply via email to