php - HTTPS returns plain text including headers -


during setting our production environment encounter wierd error, when trying curl through our server, returns plain text representation of response including http headers request on ssl.

date: fri, 19 jun 2015 02:15:00 gmt content-type: text/html content-length: 70619 last-modified: thu, 18 jun 2015 05:30:30 gmt connection: keep-alive etag: "55825776-113db" accept-ranges: bytes  <!doctype html> <html lang="en-us"> <head> , on... 

any ideas on how fix this?

set curlopt_header false in curl_setopt so:

curl_setopt($ch, curlopt_header, false); 

curlopt_header - true include header in output. (ref)


Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -