Module: yxq_game_controller, Line: 41, 
My print's "Req" is {simple_bridge_request_wrapper,mochiweb_request_bridge,
                        {mochicow_request,#Port<0.72165>,'POST',
                            "/game/get_another_recommend_game",'HTTP/1.1',
                            {12,
                             {"host",
                              {"host","localhost:8006"},
                              {"connection",
                               {"connection","keep-alive"},
                               {"accept",
                                {"accept","*/*"},
                                nil,
                                {"accept-encoding",
                                 {"accept-encoding","gzip, deflate"},
                                 nil,
                                 {"accept-language",
                                  {"accept-language",
                                   "zh-CN,zh;q=0.8,en;q=0.6"},
                                  nil,nil}}},
                               {"content-length",
                                {"content-length","14"},
                                nil,
                                {"content-type",
                                 {"content-type",
                                  "application/x-www-form-urlencoded; 
charset=UTF-8"},
                                 nil,
                                 {"cookie",
                                  {"cookie",
                                   "account_id=10; 
session_id=c228c97902478325ba6f03464fbf1a28"},
                                  nil,nil}}}},
                              {"origin",
                               {"origin","http://localhost:8006"},
                               nil,
                               {"x-requested-with",
                                {"x-requested-with","XMLHttpRequest"},
                                {"user-agent",
                                 {"user-agent",
                                  "Mozilla/5.0 (X11; Linux x86_64) 
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.65 Safari/537.36"},
                                 {"referer",
                                  {"referer",
                                   "http://localhost:8006/game/subject/1"},
                                  nil,nil},
                                 nil},
                                nil}}}},
                            <<"last_game_id=0">>},
                        false,[],[],none}
******


在 2015年6月1日星期一 UTC+8下午10:59:21,can2nac写道:
>
> Could you post the whole Req?
>
> On Tuesday, May 26, 2015 at 4:07:00 PM UTC+3, Caiyun Deng wrote:
>>
>> Hi!
>> Req:header("referer") is current url, not where the request originated.
>> Do i use it by the wrong way?
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"ChicagoBoss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at http://groups.google.com/group/chicagoboss.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/chicagoboss/63e652e5-683b-4779-acf9-88ba7e1df383%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to