Re: Sending headers to server
| From: | Karim Geiger | Date: | Fri, 02 Aug 2013 14:29:20 +0000 |
| Subject: | Re: Sending headers to server | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-321766@lists.php.net to get a copy of this message | ||
Hi Miguel,
On 08/02/2013 10:50 AM, Miguel Guedes wrote:
> Hi Karim,
>
> On 01/08/13 15:40, Karim Geiger wrote:
>>
>> Works for me. What happens exactly? Do you get a 200?
>>
>
> That's exactly right - I always get a 200. How can I diagnose this?
>
Try getting the complete header by using curl -v http://url.com and
paste it here. In my example I'm getting this output:
* About to connect() to ****** port 80 (#0)
* Trying 213.***.***.***...
* Connected to ****** (213.***.***.***) port 80 (#0)
> GET /test.php HTTP/1.1
> User-Agent: curl/7.29.0
> Host: ******
> Accept: */*
>
< HTTP/1.1 500 Internal Server Error
< Date: Fri, 02 Aug 2013 14:27:15 GMT
< Server: Apache
< Content-Length: 6
< Connection: close
< Content-Type: text/html; charset=UTF-8
<
* Closing connection 0
What is your output?
Regards
Karim
--
Karim Geiger
Auszubildender Fachinformatiker AE
B1 Systems GmbH
Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de
GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc