I’ve this web site rturesults.information
i’m attempting to put up information on esuvidha.information with wp_remote_post however no luck.
<?php
$url = 'http://esuvidha.information/rtURes/ResMainpage.php';
$response = wp_remote_post( $url, array(
'technique' => 'POST',
'timeout' => 45,
'redirection' => 5,
'httpversion' => '1.0',
'blocking' => true,
'headers' => array(),
'physique' => json_encode(array(
'clscode' => '10001@totbt10m@awbt120m@BTECH I SEM. MAIN EXAM. 2020',
'rturollno' => '19ejcee055',
'tname' => 'mahendra kumar',
'tmname' => 'geeta devi',
'hcaptchval' => 'null'
)),
'cookies' => array()
)
);
if ( is_wp_error( $response ) ) {
$error_message = $response->get_error_message();
echo "One thing went fallacious: $error_message";
} else {
echo 'Response:<pre>';
print_r( $response );
echo '</pre>';
}
?>