Re: [PHP] REVISED: PHP timeout doing fread from Apache Coyote
Ok, I've got it working now, it looks like you have to make your script more complient to HTTP specs, it seems this server is very picky on how you read the data. which is very odd.. got it working at: http://zirzow.dyndns.org/php/fread/timeout.php funny though you should be able to do a straight fread on it. Curt -- "I used to think I was indecisive, but now I'm not so sure." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] REVISED: PHP timeout doing fread from Apache Coyote
* Thus wrote Robert Fitzpatrick ([EMAIL PROTECTED]): > > > > I tested it here: > > http://zirzow.dyndns.org/php/fread/timeout.php > > > > Thanks, I took your source and pasted it in my debugger and ran it fine like > on your server. I narrowed down the, evidently significant, difference. Your > content is has line endings, hence, the 'Missing query parameters: > xml' response. If I change those line endings to just or put it all on > one continuous line, I get the long delay again. yeah my mistake, fixed that and now it doesn't work like yours. grrr.. > > Any thoughts I what would cause this? hm.. i changed my fread to read 1 byte at a time and I end up with: HTTP/1.1 2 Curt -- "I used to think I was indecisive, but now I'm not so sure." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] REVISED: PHP timeout doing fread from Apache Coyote
> > I tested it here: > http://zirzow.dyndns.org/php/fread/timeout.php > Thanks, I took your source and pasted it in my debugger and ran it fine like on your server. I narrowed down the, evidently significant, difference. Your content is has line endings, hence, the 'Missing query parameters: xml' response. If I change those line endings to just or put it all on one continuous line, I get the long delay again. Any thoughts I what would cause this? -- Robert -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] REVISED: PHP timeout doing fread from Apache Coyote
> Try not having the connection kept alive. (just a thought) > Same long reponse :( -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] REVISED: PHP timeout doing fread from Apache Coyote
* Thus wrote Robert Fitzpatrick ([EMAIL PROTECTED]): > Sorry, the correct request and response is below, the one I copied before > was from the browser: I tested it here: http://zirzow.dyndns.org/php/fread/timeout.php Appears to work ok. Curt -- "I used to think I was indecisive, but now I'm not so sure." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] REVISED: PHP timeout doing fread from Apache Coyote
Robert Fitzpatrick wrote: Sorry, the correct request and response is below, the one I copied before was from the browser: Request: Request:POST /XMLCommunicationServlet HTTP/1.0 Content-Type: application/x-www-form-urlencoded User-Agent: PHP XMLRPC Host: api.newedgenetworks.com:80 Connection: keep-alive Try not having the connection kept alive. (just a thought) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] REVISED: PHP timeout doing fread from Apache Coyote
Sorry, the correct request and response is below, the one I copied before was from the browser: Request: Request:POST /XMLCommunicationServlet HTTP/1.0 Content-Type: application/x-www-form-urlencoded User-Agent: PHP XMLRPC Host: api.newedgenetworks.com:80 Connection: keep-alive Content-Length: 758 txnType=P&partner=&xml=%3C%3Fxml+version%3D%221.0%22%3F%3E%3C%21DOCTYPE+preq ualrequest+SYSTEM+%22http%3A%2F%2Fapi.newedgenetworks.com%3A80%2Fdtd%2Fprequ alrequest.dtd%22%3E%3CPrequalRequest%3E%3CIdentification%3E%3CUs er%3E4036632%3C%2FUser%3E%3CPassword%3ELnKB8b%3C%2FPassword%3E%3 C%2FIdentification%3E%3CServiceType%3ER%3C%2FServiceType%3E%3CAddres s%3E+++%3CStreet1%3E2780+CEDARLINKS+DRIVE%3C%2FStreet1%3E+++%3CCity% 3EMEDFORD%3C%2FCity%3E+++%3CState%3EOR%3C%2FState%3E+++%3CZipCD%3E97 504%3C%2FZipCD%3E%3C%2FAddress%3E%3CPhone%3E%3CPhoneNPA%3E54 1%3C%2FPhoneNPA%3E%3CPhoneNXX%3E772%3C%2FPhoneNXX%3E%3CPhone Suffix%3E6990%3C%2FPhoneSuffix%3E%3C%2FPhone%3E%3C%2FPrequalRequest%3E Response: HTTP/1.1 200 OK Content-Type: text/xml Content-Length: 343 Date: Thu, 24 Jul 2003 15:18:52 GMT Server: Apache Coyote/1.0 Connection: Keep-Alive http://api.newedgenetworks.com/dtd/prequalresponse.dtd";> 1050Prequalification failed: AggregateCircuit unavailable -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php