Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Headers???

Status
Not open for further replies.

PGen

Programmer
Aug 31, 2001
39
GB
Can anyone guide me on use of Headers?

Im trying to simulate a POST by creating headers.

Ive got this, but it dosent wrk...

<?php
header(&quot;Content-Type: application/x- header(&quot;POST submited.asp http/1.0&quot;);
header(&quot;User-Agent: WebPager/0.1&quot;);
header(&quot;Content-length: 11&quot;);
header(&quot;&quot;);
header(&quot;F1=D1&F2=D2&quot;);
?>

Actually maybe it is working, i just cant see it ?%$?%?*
 
You might be better off using sockets (fsockopen) and post the data that way. At least you would then receive a correct response.

Chad.
 
Hi Chad,

Can you elaborate please?

Will

ps. yea it would be nice to see the response (which is a string of plain text).
 
Just for clarification, are these the headers that you want:

HTTP/1.1 200 OK
Date: Tue, 11 Sep 2001 02:37:38 GMT
Server: Apache/1.3.20 (Unix) ApacheJServ/1.1.2 PHP/4.0.4pl1 FrontPage/5.0.2.2510 Rewrit/1.1a
X-Powered-By: PHP/4.0.4pl1
Set-Cookie: PHPSESSID=c1df961afb1dce7b866cb1e8bc875f47; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-Type: text/html


Just making sure so I get you the right information.

Chad. ICQ: 54380631
online.dll
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top