cURL-读取“原始响应者数据”

时间:2020-09-19 14:09:17

标签: curl post

在浏览器中,我有一个POST表单,提交后将重新加载当前页面,并打开一个带有XML文件的新选项卡以进行下载。我想获取此XML URL。

我正在尝试通过cURL发送POST请求,但是我在输出文件中返回的内容(使用-o)仅仅是源页面,没有任何对我正在寻找的XML的引用。

当我使用Chrome开发工具检查此提交中的网络流量时,XML的URL将显示在“原始响应数据”标签中。如何使用cURL获取此数据?

我已经尝试过--raw-i选项,但没有成功。

这是我要访问的Chrome中显示的“原始响应数据”的一部分:

$('<script>try{var prm = Sys.WebForms.PageRequestManager.getInstance(); prm.add_beginRequest(beginRequest); prm.add_endRequest(endRequest); }catch(x){}; function beginRequest(sender, args) { showLoader(); } function endRequest(sender, args) { hideLoader(); } function showLoader() { $("#processing-modal").modal("show"); } function hideLoader() { $("#processing-modal").modal("hide"); $("div").removeClass("modal-backdrop fade show"); $(".maxzindex.modal").modal("hide"); }<\/script>').appendTo('body'); $('.filtroAntigo').hide(); $('.imagemCalendario').next('i').remove(); $('.imagemCalendario').hide(); if(!$('.imagemCalendario').next('i').length) { $('.imagemCalendario').after('<i class="fa fa-calendar corCalendario"></i>'); }jQuery('[data-calendario="true"]').css('width', '90px');$('.combo').select2().on('change', function (e) {try{onClickSelect2(this);}catch(e){}; });$("#divMultiEmpresa").detach().appendTo("#divEmpresaNovoMenu"); $('.menuAntigo').hide(); $('#pnlRodape').hide();|97|scriptStartupBlock|ScriptContentNoTags|try{$('select[PermiteIncluir!=true]').select2();}catch(e){};try{AplicaCor('#0000a0');}catch(x){};|137|scriptStartupBlock|ScriptContentNoTags|try{document.getElementById("ctl00_ctl00_ContentPlaceHolder1_btnGerar").setAttribute("onclick","filtroConceitoPearson();")} catch (ex) {}|168|scriptStartupBlock|ScriptContentNoTags|try{document.getElementById("ctl00_ctl00_ContentPlaceHolder1_tab_tabListaEmail_btnCriarListaEmailSMS").setAttribute("onclick","filtroConceitoPearson();")} catch (ex) {}|61|scriptStartupBlock|ScriptContentNoTags|$('#cmbConceitoPearson').select2().val([]).trigger('change');|72|scriptStartupBlock|ScriptContentNoTags|$('#cmbConceitoPearson').change(function(){ filtroConceitoPearson();});|130|scriptStartupBlock|ScriptContentNoTags|try{document.getElementById("ctl00_ctl00_ContentPlaceHolder1_btnGerar").setAttribute("onclick","filtroNaoFecha();")} catch (ex) {}|59|scriptStartupBlock|ScriptContentNoTags|$('#cmbMotivoNaoFech').select2().val([]).trigger('change');|247|scriptStartupBlock|ScriptContentNoTags|(function() { try { var n = Sys.Extended.UI.MaskedEditBehavior.prototype, t = n._ExecuteNav; n._ExecuteNav = function(n) { var i = n.type; i == "keydown" && (n.type = "keypress"), t.apply(this, arguments), n.type = i } } catch (i) { return } })();|108|scriptStartupBlock|ScriptContentNoTags|var oAvisoLead=$get('ctl00_ctl00_wavLead_pnlAvisosLead'); if (oAvisoLead) {oAvisoLead.style.display='none';}|219|scriptStartupBlock|ScriptContentWithTags|{"text":"","src":"/WebResource.axd?d=v574ibSHXkDzoHFjCVgEbQywsbEaI53FikmyJKkRKcr3gpD2CuW-1V5d0vx0aaI9m41ZXm4SPLM3ud0T0ldD2XzgeYpXGi1Pzlyyf6SZYlMuvJu1rXQzYk01PKkD7t0f0\u0026t=637342224955980932","type":"text/javascript"}|219|scriptStartupBlock|ScriptContentWithTags|{"text":"","src":"/WebResource.axd?d=JnXcQnhyw4l8168GF0XBt9w8BhLWDqKAF59IdhlEm785tvGouddPhRk4QgxpNpJ_U2EdyPQtZUCsthh5fo53eG0WVPT9iVE1M9seVjEiVVVjiq3AjEDxQLhCqkD-bXDu0\u0026t=637342224955980932","type":"text/javascript"}|129|scriptStartupBlock|ScriptContentNoTags|registerInputEvents('ctl00_ctl00_ContentPlaceHolder1_tab_tabFiltros_ContentPlaceHolder2_tab_tabFiltro_acCidade_acCidadeTextBox');|142|scriptStartupBlock|ScriptContentNoTags|acCidadeMinLength='3';loadingacCidade=false;acCidadeAutoPostBack=true;acCidadeSubmitOnEnter=false;acCidadeMaxHeight=0;acCidadeDisplayCount=15;|139|scriptStartupBlock|ScriptContentNoTags|registerInputEvents('ctl00_ctl00_ContentPlaceHolder1_tab_tabFiltros_ContentPlaceHolder2_tab_tabFiltro_acResponsavel_acResponsavelTextBox');|173|scriptStartupBlock|ScriptContentNoTags|acResponsavelMinLength='4';loadingacResponsavel=false;acResponsavelAutoPostBack=false;acResponsavelSubmitOnEnter=false;acResponsavelMaxHeight=0;acResponsavelDisplayCount=15;|129|scriptStartupBlock|ScriptContentNoTags|window.open('http://arquivostemporariosvg.s3.amazonaws.com/1742/RelatTemp/5a9ee695-7d79-4cca-ac8d-7862b808a246_9327280.xml', '');|23|scriptStartupBlock|ScriptContentNoTags|__defaultFired = false;|

0 个答案:

没有答案
相关问题