It's coming in as a binary file, as i mentioned before in some examples,
perl reads the file with
read (STDIN, &$request, $length);
an asp example uses Request.TotalBytes to get the size then does a
BinaryRead()
then in a for loop converts it to a string. This is all well and good for
them but i can't find php code to compare this too.
This is being done to read a cxml request from a ariba site (if this sounds
familiar to anyone please let me know), some project that was assigned to
me, easy enough unfortunately these guys don't have examples in php on how
to do this php so i am at a loss as to how to retrieve this info. Sorry for
any confusion. Pretty much my reaction when i saw this stuff for the first
time too.
The CONTENT_TYPE is text/xml so something is getting through the way its
supposed to be.

----- Original Message -----
From: "Rasmus Lerdorf" <[EMAIL PROTECTED]>
To: "Fabian Raygosa" <[EMAIL PROTECTED]>
Cc: "Php-General@Lists. Php. Net" <[EMAIL PROTECTED]>
Sent: Monday, March 19, 2001 4:10 PM
Subject: Re: [PHP] (HELP) Reading a file sent through HTTP


> Uh, if it is not a POST or a GET, what is it?  There must be some HTTP
> primitive or it isn't HTTP at all.
>
> -Rasmus
>
> On Mon, 19 Mar 2001, Fabian Raygosa wrote:
>
> > 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 ;)
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to