Crosswalk in Android - XWalkView - Set HTTP headers -


i new crosswalk. far have embedded using android studio , can load webpage via xwalkview.load(url,null) need pass post data via http headers. native android webview i'd pass data in second parameter webview.loadurl(url,additionalhttpheaders)

how can achieve same in crosswalk implementation?

finally achieved this, think it's new feature on latest versions, used crosswalk webview 19.49.514.0. there's new method wich accepts third parameter, classic webview. example:

xwalkview xwview=(xwalkview)findviewbyid(r.id.xwview); map<string, string> extraheaders = new hashmap<string, string>(); extraheaders.put("referer","http://www.myref.com/"); xwview.load("http://headerscheck.byethost24.com/headers.php",null,extraheaders); 

Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -