How to create POST on JSOUP if XML type of request



  • I've been dealing with this problem: when the button is pressed on the website, post XML type request.

    How do you get this Android request through JSOUP?

    Like HTML POST?

    Or is there any of your underwater stones? I haven't found information on the Internet.

    when applied F12 in the mosil comes:
    POST, type XML
    Hedners:

    POST /argus/block/send-receive-updates HTTP/1.1
    Host: URL
    User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:42.0) Gecko/20100101 Firefox/42.0
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    Accept-Language: ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3
    Accept-Encoding: gzip, deflate
    Content-Type: application/x-www-form-urlencoded; charset=UTF-8
    Referer: URL
    Content-Length: 752
    Cookie: JSESSIONID; 
    ice.sessions=sessionid
    Connection: keep-alive
    Pragma: no-cache
    Cache-Control: no-cache
    

    and values in the input parameters:

    ice.submit.partial=true
    ice.event.target=mainform:queryTree:n-0:j_id145
    ice.event.captured=mainform:queryTree:n-0:j_id144
    ice.event.type=onclick
    ice.event.alt=false
    ice.event.ctrl=false
    ice.event.shift=false
    ice.event.meta=false
    ice.event.x=71             **это судя по всему координаты х,у места нажатия кнопки** 
    ice.event.y=113
    ice.event.left=true
    ice.event.right=false
    mainform=mainform
    icefacesCssUpdates
    javax.faces.ViewState=1
    javax.faces.RenderKitId=ICEfacesRenderKit
    mainform:mainform:queryTree_idta
    mainform:mainform:queryTree_idtn
    mainform:j_id137Expanded
    mainform:j_id137ClickedNodeName
    mainform:procSearch
    mainform:_idcl=mainform:queryTree:n-0:j_id144
    ice.session=TVi-cz23Of9XMYp0dwMjcw   **не знаю откуда это берется**
    ice.view=1
    ice.focus=mainform:queryTree:n-0:j_id144   
    rand=0.7699530793865863     **и это тоже**
    


  • Problem solved!
    In the original statue, I was told that JSOUP wasn't suitable for javascript treatment.
    So I decided to use the WebView.




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2