I have a flash application that sends flex messages to the server using POST request with application/x-amf content-type.
following piece of code:
private static void FiddlerApplication_BeforeRequest(Session oSession)
if (oSession.oRequest.headers.ExistsAndEquals("Content-Type", "application/x-amf"))
Encoding enc = oSession.GetRequestBodyEncoding(); //we can use Encoding.UTF8..... doesn't matter - same result
string reqBody = enc.GetString(oSession.requestBodyBytes);
oSession.requestBodyBytes = enc.GetBytes(reqBody);
WOW!!! In a response i see next:
HTTP/1.1 200 OK
Date: Fri, 25 Dec 2015 00:00:26 GMT
..some content...//Unknown AMF type '-65'.Buf���/Client.Message.Encoding....
So the server doesn' t like my harmless operation. But i can't understand. I think i did nothing with request body actually.