DISQUS

Md Emran Hasan (phpfour): HTTP Class for PHP (supports both cURL and fsockopen) | Md Emran Hasan (phpfour)

  • Omi Azad · 1 year ago
    You can add this function in Orchid framework. :)
  • Emran Hasan · 1 year ago
    Yeah Omi bhai - i've already planned that :) Just not been able to log into the SVN lately :(
  • masud · 1 year ago
    Great job Emran vai. Finally you released this. :)
    yea its a good idea if you add this to orchid framework. :)

    cool man :)
  • H2 · 1 year ago
    Well done Batman! A very good one. I was thinking that we need such a class library for orchid. Can I please add your class with default distribution?

    You are doing excellent. Keep up the good work. Godspeed.
  • Emran Hasan · 1 year ago
    Thanks Hasin. And yes, i would be honored if this is added to orchid.
  • Jahedur Rahman · 1 year ago
    Wow, It's a nice theme. Tobe menu gula dekhte ekto asubidha hocche r ki :)
  • Anis uddin Ahmad · 1 year ago
    Simply GENIUS!
    Excellent structure, easy to use and ???????? documentation.
  • Jack · 1 year ago
    Thanks for the code. I found it in the Code Igniter forums. I turned it into a library for use in my most recent web app.
  • Emran Hasan · 1 year ago
    @jack: Great to know that it came to help you exactly in the manner i expected it would. Great to know that you're using it in your project :)
  • tapos · 1 year ago
    cool work.
  • Andy Gelox · 1 year ago
    Thx for this awesome class. How to make it aouto detect for curl or dsockopen ?
  • Emran Hasan · 1 year ago
    @Andy Gelox: You're welcome. The class tries to use cURL by default, but if cURL is not installed, it automatically falls back to fsockopen. And you can specify by yourself in case you need to. Cheers!
  • Richard · 1 year ago
    When use the class ,I notice
    the cURL require a website need longer time then fsockect.is it?
  • H-BES · 1 year ago
    Hi,

    with allow redirect set to true if i call a page with status code 302 i can't read the headers of destination page, i read only the headers of first page.

    it's normal?

    can you help me?

    Thanks

    ciao
    riccardo
  • Brainbug · 1 year ago
    Thanks for sharing the class.


    It is quite helpful in php4 and php5. Love how it degrades automatically if there is no CURL. Have you though of supporting stream wrappers?
  • Vince · 1 year ago
    It seems that fsockopen method doesn't follow redirects.
  • Md Emran Hasan (phpfour) · 1 year ago
    Well, it should follow redirects with or without cURL. I will have a look
    into it and will update the source if needed. Thanks
  • Eydun · 1 year ago
    Is it possible with this class to post data, so they can be fetch on the other side with: file_get_contents("php://input")?
  • Md Emran Hasan (phpfour) · 1 year ago
    Yes, of course !