Hi
I'm using the HTTP_Request Class (PEAR) to get results back from a webpage.
I've made a script to add email forwarding aliasses in CPANEL. It worked very fine, but suddenly I don't get a result anymore of getResponseBody().
the aliases are still created, so the HTTP request succeeds. Also I can get header information, only body is empty.

Does anyone know why this is happening?

You can download my script at pucazone.com/scripts

greets

    I've made the following 'discovery': the function does work when catching other sites but returns empty on the cpanel site.

    teh cpanel site is with http authentication. I use POST to send along user and password.

    authentication is accepted because i can make changes using other POST var's of html forms.

    Only i get no response back..

      Finally foun it! thought to post this here for someone with same problem in the future.
      The reason why it does return empty string i because of gzip encoding. (used with http 1.1)
      When you give parameter 'http' => '1.0' with the HTTP_Request function it'll work just fine again!

        Write a Reply...