Login   Register  
PHP Classes
elePHPant
Icontem

POST Pb

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      HTTPPost  >  All threads  >  POST Pb  >  (Un) Subscribe thread alerts  
Subject:POST Pb
Summary:Sometime it works sometimes not
Messages:2
Author:fred
Date:2005-03-08 09:28:43
Update:2005-12-18 00:40:24
 

  1. POST Pb   Reply  
Picture of fred
fred
2005-03-08 09:28:43
hi,
I have certainly made a mistake somewhere ... :
Depends to the server I can't get the BODY (method getresponsebody)
But in all of these cases I can have the HEADER (method getresponseheader).It's really strange for me. Is it a PORT problem and in this case how can I resolve it ?
Can someone help me ?

  2. Re: POST Pb   Reply  
Picture of Raphael G.
Raphael G.
2005-12-18 00:40:24 - In reply to message 1 from fred
open class.HTTPPost.inc, search for 'fsockopen'; replace '80' with '$this-port'; now go at the top and find 'var $url;' there add 'var $port;' now search ', $authInfo = false' after that add ', $port'

now just add the $port param;

btw, this code is kind bogus, it gives me "Call-time pass-by-reference has been deprecated", and "fread(): Length parameter must be greater than 0. in" the first error I already fixed it for myself, just find 'fsockopen' then in that line remove all the '&' that you find. The second error it is caused because a "don't know why" usage of hexdec(); now... it doesn't parse the URL, so if the url contains a port it is going to fail, what means that it doesn't parses the user and password if it is set in the URL

it doesn't lend you to add more headers, not even change the user-agent used .