Excellent! Glad it was solved! -Jesse On Jun 2, 2015 6:39 AM, "Caiyun Deng" <[email protected]> wrote:
> You are right. > sorry! it is my fault. > > 在 2015年6月2日星期二 UTC+8上午11:47:21,Jesse Gumm写道: >> >> The fact that there's a POST request in there is interesting, and likely >> the cause of confusion. >> >> The Post must be originating from the original request, because a simple >> link from an <a href> link will generate a GET request. >> >> Find the source of the post and youll have your culprit. I'd bet some >> Javascript is doing it on page load. >> >> -Jesse >> On Jun 1, 2015 9:51 PM, "Caiyun Deng" <[email protected]> wrote: >> >>> 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 >>> <https://groups.google.com/d/msgid/chicagoboss/63e652e5-683b-4779-acf9-88ba7e1df383%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> For more options, visit https://groups.google.com/d/optout. >>> >> -- > 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/4f34fab2-9a47-46ec-8bc4-73fc6617ec3b%40googlegroups.com > <https://groups.google.com/d/msgid/chicagoboss/4f34fab2-9a47-46ec-8bc4-73fc6617ec3b%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CAPTXyXdKE98fdmAJp07LopRuVbvCnsoD%3DJWZGbkNOz%3D-t3qB5g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
