how to send a amf request with FluorineFx?

  • Thread starter Thread starter leylalala
  • Start date Start date
L

leylalala

Guest
I am currently trying to create an amf request with c#. but I keep getting `404` errors.
what I currently have is the header and the content. with charles proxy it works.

with FluorineFx I connected to the server and call the method



string BasePoint = "http://ws-de.mspapis.com/msp/89.0.1/Gateway.aspx";
NetConnection Connection = new NetConnection();
Connection.ObjectEncoding = FluorineFx.ObjectEncoding.AMF3;
Connection.OnConnect += new ConnectHandler(netConnection_OnConnect);
Connection.NetStatus += new NetStatusHandler(netConnection_NetStatus);
Connection.AddHeader("id", false, "c816eda271738098a7c2a1d1264a956e250026e4");
Connection.AddHeader("needClassName", false, true);
Connection.Connect(BasePoint);
if (Connection.Connected) {
Console.WriteLine($"connected.");
Connection.Call(
"MovieStarPlanet.WebService.Moderation.AMFModeration.CheckNewUsername",
new Handler(),
"TotoZepter",
"MSP.DE");
}



Result: 404 not found

but in charles proxy the POST request to
`https://ws-de.mspapis.com/msp/89.0....ice.Moderation.AMFModeration.CheckNewUsername`
works.

how can I add request headers in FluorineFx?

it should also works with httpwebrequest but I don't know how I can encoode/deocde amf content

Continue reading...
 
Back
Top