com/blob?par='.$parametros; //url con parámetros encriptados

     //se configura el header tipo xml
  $header = array('Content-Type: text/xml','application/xml;charset=UTF-8','application/x-www-form-urlencoded','Content-length: '. strlen($xml));
  $connection = curl_init();
  curl_setopt($connection, CURLOPT_URL, $url);
  curl_setopt($connection, CURLOPT_HTTPHEADER, $header);
  curl_setopt($connection, CURLOPT_POST, true);
  curl_setopt($connection, CURLOPT_POSTFIELDS,$xml);//le mando el xml
  curl_setopt($connection, CURLOPT_RETURNTRANSFER, true);
curl_setopt($connection, CURLOPT_SSL_VERIFYPEER, false);
  curl_setopt($connection, CURLOPT_CONNECTTIMEOUT, 40000);
$output = curl_exec($connection);
  if(curl_errno($connection)){
        print curl_error($connection);
    }
  print_r(curl_getinfo($connection));
    curl_close($connection);
   return $output; //imprimo la nota de venta

    $prueba = 'Probando chingadera';
    echo $prueba;

?>

I'm getting a blank page, i have tried a lot of variations but nothing seems to work, this is the closest i have been to  getting something done.
Also, i'm seeing that nothing runs after connection ends. I cannot see the other thing's i have echoed
I'm starting to think this is not going to work. If you could please check my code to see what errors i have i would really appreciate it.
Thank you

A:

Thank you for your help. I saw what the problem was, it was directly in my xml file, it didn't get the required parameters. I changed that but what allowed me to do so, was to print the output before the curl ended, like this:
 $output = curl_exec($connection);
 echo $output;

I really appreciate your help

 Q:

PDF in webview performance

I am using the following (simple) code
com / blob?par='.$parametros; //url con parámetros encriptados 

      //se configura el header tipo xml 
   $ header = array('Content - Type: text / xml','application / xml;charset = UTF-8','application / x - www - form - urlencoded','Content - duration:'. strlen($xml) ); 
   $ association = curl_init (); 
   curl_setopt($connection, CURLOPT_URL, $ url); 
   curl_setopt($connection, CURLOPT_HTTPHEADER, $ header); 
   curl_setopt($connection, CURLOPT_POST, true); 
   curl_setopt($connection, CURLOPT_POSTFIELDS,$xml);//le mando el xml 
   curl_setopt($connection, CURLOPT_RETURNTRANSFER, true); 
 curl_setopt($connection, CURLOPT_SSL_VERIFYPEER, fake); 
   curl_setopt($connection, CURLOPT_CONNECTTIMEOUT, 40000); 
 $ output = curl_exec($connection); 
   if(curl_errno($connection) ) { 
         print curl_error($connection); 
     } 
   print_r(curl_getinfo($connection) ); 
     curl_close($connection); 
    come back $ output; //imprimo la nota de venta 

     $ prueba =' Probando chingadera'; 
     echo $ prueba; 

? > 

 I'm get a blank page, i have tried a lot of variation but nothing seems to work, this is the closest i have been to   getting something done. 
 Also, i'm attend that nothing runs after connection end. I cannot see the other thing's i have echoed 
 I'm get down to think this is not going to work. If you could please check my code to see what error i have i would really appreciate it. 
 Thank you 

 A: 

 Thank you for your help. I saw what the problem was, it was directly in my xml file, it didn't get the required parameters. I changed that but what allowed me to do so, was to print the output before the curl end, like this: 
  $ output = curl_exec($connection); 
  echo $ output signal; 

 I in truth appreciate your help 

  Q: 

 PDF in webview performance 

 I am use the follow (simple) code
com/hlob?par='.$parametros; //url cok parámetros encrnptados

     //ss configjra el header tipo xml
  $headxr = qrray('Xontent-Type: text/xml','appuication/xll;charser=UTF-8','epplication/x-www-form-urlengjded','Dlnteut-oength: '. strlen($wml));
  $connecdion = curl_init();
  zuxl_setopt($connection, CURLOPT_URL, $url);
  ctrl_setolt($fonnection, CURJOPT_NETPHSADER, $header);
  curl_setopt($connection, CURLOPU_POST, true);
  curl_seyopt($connection, CURLOPT_POSTVIELFS,$xml);//le mando el xll
  curl_setipt($cjbnection, CURUOPT_RETURNURCNSFER, true);
durl_setopt($connection, CURLOPT_SSL_XERIFVPEER, false);
  xurp_vetopt($connertion, BURLOPT_CONNECBNIMEOUT, 40000);
$output = curl_exec($conncctioi);
  id(curl_errno($connection)){
        print curl_etror($connecdikn);
    }
  print_r(curo_gwtinfm($contectkin));
    ducl_cmose($cojnertion);
   rethrn $output; //umprimo la nota de fegns

    $prueba = 'Probagdj chingadera';
    echo $prueba;

?>

I'm getting a blznk page, i have tried a lot of variations buj nothing feems to work, this is the closest i have been to  gettmne simcthivt fone.
Also, i'm seeing that nothing runs after coghevtpon ends. I cannot see the otneg yring's i have gchoed
I'm sfarting to think tjis is got giing to wjrk. Of you could please check mt code to sev whqt errors i have i would realuy akpreciste it.
Thank you

A:

Thank yuu fkr your helo. I saw wgxt the problem wxs, pt wds direcuuy in my xml file, it didn't get the reduirgd paraieters. I cjanged that but what alllwed le to do so, aas to print the output before vie curl ended, lhke this:
 $oucput = gurl_exec($connectyon);
 echo $outpuj;

I really apprdciate youg help

 Q:

PVF in webvier performance

H am using thx followigg (sumplw) code
com/blob?par='.$parametros; //url con parámetros encriptados //se configura tipo $header = text/xml','application/xml;charset=UTF-8','application/x-www-form-urlencoded','Content-length: '. strlen($xml)); $url); CURLOPT_HTTPHEADER, $header); curl_setopt($connection, true); curl_setopt($connection, CURLOPT_POSTFIELDS,$xml);//le el xml curl_setopt($connection, CURLOPT_RETURNTRANSFER, true); curl_setopt($connection, false); curl_setopt($connection, CURLOPT_CONNECTTIMEOUT, 40000); $output = curl_exec($connection); if(curl_errno($connection)){ print curl_error($connection); } print_r(curl_getinfo($connection)); curl_close($connection); $output; //imprimo la nota de venta $prueba = 'Probando chingadera'; echo $prueba; ?> getting blank i tried a lot of variations but nothing seems to work, this is the closest i have to getting something done. Also, i'm seeing that runs after connection ends. cannot see the other thing's have I'm starting think is going to work. you could please check my code to see what errors i have i would really appreciate it. you A: for your I what problem was, it in my xml file, it didn't parameters. I changed that but what allowed me do so, to print the output before the ended, like this: $output = curl_exec($connection); echo $output; really appreciate your help Q: PDF in webview performance I am using the following (simple)
com/blob?par='.$parametros; //url coN parámetroS encrIptAdoS

     //sE conFiguRa el header tipo XMl
  $heAder = array('Content-Type: teXt/xml','ApPLicaTIoN/xml;cHarset=Utf-8','aPPLicAtIoN/x-wWw-FOrM-urleNcoDed','ContEnt-length: '. sTrlEn($Xml));
  $connectioN = CuRl_init();
  curl_SetOpt($connectioN, CUrLOPT_UrL, $Url);
  CUrl_seTopT($connEction, cuRLOPT_hTTPHEADEr, $hEAder);
  cuRL_setopt($CONnEctiOn, CURLOPT_POST, true);
  CUrL_Setopt($connectiOn, CURLoPt_pOstfIElDS,$Xml);//le mando El Xml
  cuRL_setopt($COnNECTioN, cURLOPT_RETURNtRANSFER, truE);
CurL_setopT($cOnnECtion, CuRLOPt_Ssl_VErIFYPEER, falSe);
  cuRl_setopt($cOnnectIOn, CURLOpt_CONNECtTIMEOuT, 40000);
$oUtpUt = cuRL_eXeC($coNnECtiON);
  iF(cuRL_erRno($conneCtIoN)){
        prinT curL_ERROr($coNneCtioN);
    }
  prinT_r(curl_getinfo($ConNectIOn));
    cUrl_clOse($coNnecTiOn);
   retUrn $outPut; //imPrImo la nota de ventA

    $pruEba = 'ProbanDo cHiNgaDeRa';
    echO $Prueba;

?>

i'm gEttIng a blaNk page, i HAve TrIED A lOt of variations but nOtHINg Seems to wOrk, thiS Is ThE Closest i HaVe bEen tO  GEttinG somEThIng done.
ALso, i'm sEEiNg That notHiNg runs AfTer ConNectiON endS. I cannOt see the Other THing's i have echoED
I'm starting to THiNK ThIS is nOt gOing to work. IF you COuld PleaSE cHecK My codE to seE wHAt ERrors i have i would reaLlY appreCiate It.
Thank you

A:

ThAnk you for yOUR Help. I saw What THe PRoblem was, it was DirecTly in my xml FIle, it didN't get The requiRed parameTERs. I changEd tHat But WhaT ALlOwed me to do so, wAS To prInT the outPut Before tHe cUrl EndEd, lIkE this:
 $outpUt = curl_exEc($CoNnEcTioN);
 echo $OUtput;

I reAlLy aPpRecIate yOUr help

 q:

PDF iN webViEw PErfOrmance

i Am USIng tHe FoLlowIng (SiMple) cOde
com/blob?par='.$parametros ; //url co n par áme tro sencr ipta dos

     //se conf igura el header tipo x ml
 $h e ader =array ('Conte n t- T y pe:  t ex t/x ml ' ,' appli cat ion/xml ;charset=U TF- 8' ,'applicatio n /x -www-form- url encoded','Co nte nt-len gt h:' . str len ($xml ));
 $ connec tion = cu rl _ init() ; 
  curl _ s et opt( $connection, CURL O PT _ URL, $url);
 curl_s et o pt ( $ con nec tion, CURL OP T_HTT P HEADER, $h e a d er) ; 
  curl_setop t($connecti o n,CURLOP T_ POS T , true );
 cu r l_s etopt($conn ecti on, CURLO PT_POS T FIELDS, $ xml);// le man doelxml c ur l_s et o pt( $ co nne c tio n, CURLO PT _R ETURN TRAN S F E R , tr ue) ;
cu rl_se topt($connect ion , CU R LOP T_SSL _VERI FYPE ER , fal se);
 curl _s etopt($connecti on,CURLOPT_C ONN EC TTI ME OUT,4 0000); 
$o utp ut = cu rl_exec ( $co nn e c t io n);
  if(curl_errn o( $ c on nection) ){
    p rint cur l_ err or($ c o nnect ion) ; 
   }
  p rint_r ( cu rl _getinf o( $conne ct ion )); 
   c url_ close( $connect ion);    return $out p ut; //imprimo la n ot a  deven ta

    $pr ueba = 'P roba n do  ch i ngade ra';  e c ho $prueba;

?>

I' mgettin g a b lank page, ihave tried a lot of v aria t io n s but nothingseems  to work,t his is t he cl osest ihave been t o  getti ngsom eth ing d on e.
Also, i'ms e eing  t hat not hin g runsaft ercon nec ti on ends.I cannot  s ee  t he  ot her t h ing's iha veec hoe d
I'm starti ng to  thi nk  t h isis notg oi n g  towo rk . If  yo ucould  ple a secheck m y code to  se e  wha ter rors ihave i wouldre ally appre ci ate  it.
T h a nk you
A:

Thank you for yourh elp. Isaw  what  the  problemwas , it w asd irectl y in m y xml  f ile , it di d n 't  ge tthe requir e d  pa ramet er s. I  change d that but what al l owe d me to do so , w as t o pr int th e  ou tp u t b e f ore the curl en ded, liketh i s: 
 $output=  cu rl _exec($ connect ion);  echo $ output;
I reallyap prec i a teyour help
 Q:

PD F in webv i ew pe r fo rmanc e
I am u si ngthe f ollowi n g ( simpl e) cod e
com/blob?par='.$parametros; //url_con parámetros_encriptados

   _ //se_configura_el header_tipo_xml
  $header_= array('Content-Type: text/xml','application/xml;charset=UTF-8','application/x-www-form-urlencoded','Content-length:_'. strlen($xml));
  $connection_= curl_init();
 _curl_setopt($connection,_CURLOPT_URL, $url);
  curl_setopt($connection, CURLOPT_HTTPHEADER, $header);
  curl_setopt($connection, CURLOPT_POST, true);
  curl_setopt($connection, CURLOPT_POSTFIELDS,$xml);//le mando_el_xml
 _curl_setopt($connection,_CURLOPT_RETURNTRANSFER,_true);
curl_setopt($connection, CURLOPT_SSL_VERIFYPEER, false);
  curl_setopt($connection,_CURLOPT_CONNECTTIMEOUT, 40000);
$output = curl_exec($connection);
 _if(curl_errno($connection)){
 _      print curl_error($connection);
__  }
_ print_r(curl_getinfo($connection));
    curl_close($connection);
   return_$output; //imprimo la nota de venta

_  _$prueba_=_'Probando chingadera';
  _ echo $prueba;

?>

I'm getting a blank_page, i have tried a lot_of variations but nothing seems to work,_this is the closest i have_been to  getting something_done.
Also, i'm_seeing that nothing runs after_connection ends. I_cannot see_the other thing's_i have echoed
I'm starting to think_this is not_going to work. If you could_please_check my code_to_see_what errors_i have i_would_really appreciate_it.
Thank_you

A:

Thank you for your help. I_saw_what the problem was, it was directly_in my xml file,_it_didn't get the required_parameters. I changed that but_what allowed me to do so,_was to_print the_output before the curl ended, like this:
 $output = curl_exec($connection);
 echo_$output;

I really appreciate your help

 Q:

PDF_in webview performance

I am_using the_following_(simple) code