Re: (HELP) Reading a file sent through HTTP

From: Date: Tue, 20 Mar 2001 00:27:24 +0000
Subject: Re: (HELP) Reading a file sent through HTTP
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-44658@lists.php.net to get a copy of this message
What request method is it then? I only know of HEAD and PUT other than GET and POST make a script that receives their request, and write getenv("REQUEST_METHOD") to a file and look I don't think socket functions will help you read it anyway, unless you replace your httpd with an ever-running, listening php script. > A site is trying to send our website a xml file. Unfortunately it is not > being sent through POST or GET. Using tools that the other site gives me to > test my site i > have determined only the file size through server vars CONTENT_LENGTH and > CONTENT_TYPE which is text/xml. But thats it. I am stuck on how to read the > file. > > Some perl examples i have seen use this function: > read (STDIN, $request, $length); > php has that but right now our production servers won't have those socket > functions available till a few days time so rightnow i am left alone. I am > desperate for help. Does anyone have any suggestions with or without using > socket functions on how to read this incoming file??? > Thanks in advance ;)

« previous php.general (#44658) next »