topic description
ladies and gentlemen, I want to use python&request to grab the data of a webservice website, which is an embedded swf login. Currently, I can log in, but I can"t get sessionid (empty in request.cookies, you can"t get data without sessionid). By anti-editing the SWF file, I found that there is a get seesion method in the actionscript in SWF, but I don"t know how python can communicate with actionscript and use the method in it. Please help the gods.
or use other methods to get sessionId. Please give us some advice.
sources of topics and their own ideas
related codes
/ / Please paste the code text below (do not replace the code with pictures)
actionscript content:
/ / class LogOutCommand
package com.hp.ais.xf.SPoG.controller
{
import com.hp.ais.xf.SPoG.*;
import com.hp.ais.xf.SPoG.model.*;
import org.puremvc.as3.interfaces.*;
import org.puremvc.as3.patterns.command.*;
public class LogOutCommand extends org.puremvc.as3.patterns.command.SimpleCommand implements org.puremvc.as3.interfaces.ICommand
{
public function LogOutCommand()
{
super();
return;
}
public override function execute(arg1:org.puremvc.as3.interfaces.INotification):void
{
this.facade.sendNotification(com.hp.ais.xf.SPoG.ApplicationFacade.SHOW_LOGOUT_VIEW);
var loc1:*=facade.retrieveProxy(com.hp.ais.xf.SPoG.model.SpogConnectorServiceProxy.NAME) as com.hp.ais.xf.SPoG.model.SpogConnectorServiceProxy;
var loc2:*=facade.retrieveProxy(com.hp.ais.xf.SPoG.model.SecurityServiceProxy.NAME) as com.hp.ais.xf.SPoG.model.SecurityServiceProxy;
var loc3:*=facade.retrieveProxy(com.hp.ais.xf.SPoG.model.UserSessionProxy.NAME) as com.hp.ais.xf.SPoG.model.UserSessionProxy;
var loc4:*=facade.retrieveProxy(com.hp.ais.xf.SPoG.model.ContentProviderCrossTalkProxy.NAME) as com.hp.ais.xf.SPoG.model.ContentProviderCrossTalkProxy;
var loc5:*=facade.retrieveProxy(com.hp.ais.xf.SPoG.model.QueryStringProxy.NAME) as com.hp.ais.xf.SPoG.model.QueryStringProxy;
loc1.stopRetrievingEvents();
loc2.stopRefreshOfHandle();
loc1.shutdownUser(loc3.session.sessionId); // sessionId
loc2.logoutUser(loc2.securityHandle);
loc3.reset();
loc5.securityHandle = null;
loc4.resetConnection();
return;
}
}
}