How to retrieve headers on AppHarbor hosted WCF-applications -
currently have wcf-based service deployed on appharbor. i'm having issue operation defined this:
[webget(uritemplate = "feedcallback")] stream handlemessageget();
and implemented this:
public stream handlemessageget() { var value = weboperationcontext.current.incomingrequest.headers["header.name"]; //do stuff header value return ms; }
whenever run wcf application on localhost debugging etc. works fine; can retrieve header value. whenever deploy project appharbor, request doesn't function anymore because can't retrieve header weboperationcontext
.
what causing issue , how solved?
in end seems issue appharbor loadbalancer not forwarding headers dots in them.
see: http://support.appharbor.com/discussions/problems/37218-header-not-being-forwarded
Comments
Post a Comment