Re: [PHP] Sending headers to server

[email protected] (Karim Geiger)
Newsgroups php.general
Message-ID <[email protected]>
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
signature.asc (application/pgp-signature, 555 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJR+8JEAAoJEP3U0UyBvgwDsHEH/3xqnRBtkxmQQTPXd59Y37Jo
48GvylgvZkL+0hJDJd5FkbDd2QvXd/urZkfvoL7Q/D88AMEgr+C/wDRbA90DA++Z
DwafPHxoUXMtnkGVBa2oj77d5iol1gExDPpjsA1gkmpa10Hc/oMWzVVVgf5GkWgb
0xcMUC7yXyjl30LFg3zhPSEpkk1CTaT+pW3ck980TEnThtrg2HUO1LnpHUFgJV5p
9jj/TMHlTlXBAIU9tkXoEkfuJdaDlYnC1T2+lSy9+BTybCZoVkB5Dawp0P4txPTJ
Bl/KymvWVpGceOpefEw1FBHIE2yBr0XxxYdEKx3aUWRlohXZGMm4VBhA0Wj/RH4=
=GweV
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.