Skip to main content
adicionou 18 caracteres ao conteúdo
Fonte Link
user28595
user28595
$a='stringsearch';
$username = 'username';
$password = 'password';
$url = "http://exemplo.meuwebservice:(porta)/paraexemplo/$a";

$ch = curl_init($url);
curl_setopt($ch, CURLOPT_USERPWD, "$username:$password");
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true );
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_HTTPHEADER, "Accept: application/json" );


$output = curl_exec($ch);
$info = curl_getinfo($ch);


curl_close($ch);

$obj = json_decode($output);
$json_output = json_decode($output, true);
foreach($json_output as $item){
    foreach($item as $dados){
    echo $dados;
    } 
}
$a='stringsearch';
$username = 'username';
$password = 'password';
$url = "http://exemplo.meuwebservice:(porta)/paraexemplo/$a";

$ch = curl_init($url);
curl_setopt($ch, CURLOPT_USERPWD, "$username:$password");
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true );
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_HTTPHEADER, "Accept: application/json" );


$output = curl_exec($ch);
$info = curl_getinfo($ch);


curl_close($ch);

$obj = json_decode($output);
$json_output = json_decode($output, true);
foreach($json_output as $item){
foreach($item as $dados){
echo $dados;
}}
$a='stringsearch';
$username = 'username';
$password = 'password';
$url = "http://exemplo.meuwebservice:(porta)/paraexemplo/$a";

$ch = curl_init($url);
curl_setopt($ch, CURLOPT_USERPWD, "$username:$password");
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true );
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_HTTPHEADER, "Accept: application/json" );


$output = curl_exec($ch);
$info = curl_getinfo($ch);


curl_close($ch);

$obj = json_decode($output);
$json_output = json_decode($output, true);
foreach($json_output as $item){
    foreach($item as $dados){
    echo $dados;
    } 
}
Only code.
Fonte Link

I want resolve: Consegui resolver desta forma:

$a='stringsearch'; $username = 'username'; $password = 'password'; $url = "http://exemplo.meuwebservice:(porta)/paraexemplo/$a";

$ch = curl_init($url); curl_setopt($ch, CURLOPT_USERPWD, "$username:$password"); curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, "Accept: application/json" );

$output = curl_exec($ch); $info = curl_getinfo($ch);

curl_close($ch);

$obj = json_decode($output); $json_output = json_decode($output, true); foreach($json_output as $item){ foreach($item as $dados){ echo $dados; }}

$a='stringsearch';
$username = 'username';
$password = 'password';
$url = "http://exemplo.meuwebservice:(porta)/paraexemplo/$a";

$ch = curl_init($url);
curl_setopt($ch, CURLOPT_USERPWD, "$username:$password");
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true );
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_HTTPHEADER, "Accept: application/json" );


$output = curl_exec($ch);
$info = curl_getinfo($ch);


curl_close($ch);

$obj = json_decode($output);
$json_output = json_decode($output, true);
foreach($json_output as $item){
foreach($item as $dados){
echo $dados;
}}

I want resolve: Consegui resolver desta forma:

$a='stringsearch'; $username = 'username'; $password = 'password'; $url = "http://exemplo.meuwebservice:(porta)/paraexemplo/$a";

$ch = curl_init($url); curl_setopt($ch, CURLOPT_USERPWD, "$username:$password"); curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, "Accept: application/json" );

$output = curl_exec($ch); $info = curl_getinfo($ch);

curl_close($ch);

$obj = json_decode($output); $json_output = json_decode($output, true); foreach($json_output as $item){ foreach($item as $dados){ echo $dados; }}

$a='stringsearch';
$username = 'username';
$password = 'password';
$url = "http://exemplo.meuwebservice:(porta)/paraexemplo/$a";

$ch = curl_init($url);
curl_setopt($ch, CURLOPT_USERPWD, "$username:$password");
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true );
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_HTTPHEADER, "Accept: application/json" );


$output = curl_exec($ch);
$info = curl_getinfo($ch);


curl_close($ch);

$obj = json_decode($output);
$json_output = json_decode($output, true);
foreach($json_output as $item){
foreach($item as $dados){
echo $dados;
}}
Reversão para edição 1
Fonte Link

ConseguiI want resolve: Consegui resolver desta forma:

$a='stringsearch';
$username = 'username';
$password = 'password';
$url = "http://exemplo.meuwebservice:(porta)/paraexemplo/$a";

$ch = curl_init($url);
curl_setopt($ch, CURLOPT_USERPWD, "$username:$password");
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true );
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_HTTPHEADER, "Accept: application/json" );


$output = curl_exec($ch);
$info = curl_getinfo($ch);


curl_close($ch);

$obj = json_decode($output);
$json_output = json_decode($output, true);

foreach($json_output as $item){
    foreach($item as $dados){
    echo $dados;
    }
}

$a='stringsearch'; $username = 'username'; $password = 'password'; $url = "http://exemplo.meuwebservice:(porta)/paraexemplo/$a";

$ch = curl_init($url); curl_setopt($ch, CURLOPT_USERPWD, "$username:$password"); curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, "Accept: application/json" );

$output = curl_exec($ch); $info = curl_getinfo($ch);

curl_close($ch);

$obj = json_decode($output); $json_output = json_decode($output, true); foreach($json_output as $item){ foreach($item as $dados){ echo $dados; }}

Consegui resolver desta forma:

$a='stringsearch';
$username = 'username';
$password = 'password';
$url = "http://exemplo.meuwebservice:(porta)/paraexemplo/$a";

$ch = curl_init($url);
curl_setopt($ch, CURLOPT_USERPWD, "$username:$password");
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true );
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_HTTPHEADER, "Accept: application/json" );


$output = curl_exec($ch);
$info = curl_getinfo($ch);


curl_close($ch);

$obj = json_decode($output);
$json_output = json_decode($output, true);

foreach($json_output as $item){
    foreach($item as $dados){
    echo $dados;
    }
}

I want resolve: Consegui resolver desta forma:

$a='stringsearch'; $username = 'username'; $password = 'password'; $url = "http://exemplo.meuwebservice:(porta)/paraexemplo/$a";

$ch = curl_init($url); curl_setopt($ch, CURLOPT_USERPWD, "$username:$password"); curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true ); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, "Accept: application/json" );

$output = curl_exec($ch); $info = curl_getinfo($ch);

curl_close($ch);

$obj = json_decode($output); $json_output = json_decode($output, true); foreach($json_output as $item){ foreach($item as $dados){ echo $dados; }}

adicionou 106 caracteres ao conteúdo
Fonte Link
user28595
user28595
Carregando
Fonte Link
Carregando