Hi Team,
Here is the site url:
http://encorerealty.staging.wpengine.com/free-rental-analysis/
After submitting the form I get a pdf cant load error.
The same code works on the other site.
We are sending data to third party and getting a pdf in response.
if ( is_wp_error( $response_report ) ) {
$error_message = $response_report->get_error_message();
echo "Something went wrong: $error_message";
} else {
$data = $response_report['body'];
header('Content-Type: application/pdf');
echo $data;
}
Regards,
Pallavi