Jump to content

cURL Functionality Without Using cURL


jgbishop

Recommended Posts

I'm porting some code from C++ to PHP, and the C++ application I'm porting from uses the cURL library (http://curl.haxx.se/). The library is used to both make requests to a internal website at my work and to look at returned response codes (200, 401, 404, etc). It then takes appropriate action, based on the response code that was returned.

 

Due to a number of issues, many of which I cannot control, I am unable to make use of the PHP port of the cURL library. I need to do user authentication, and check response codes for websites (again, codes like a 404 not found). How can I go about doing this without using the cURL library? Are there native calls available for me to do this kind of thing? If so, what are they?

 

What other alternatives exist? Native alternatives would be ideal, since I'd like to avoid third-party dependencies if possible. Thanks in advance for any help you might be able to provide!

 

Jonah

Link to comment
https://forums.phpfreaks.com/topic/41345-curl-functionality-without-using-curl/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.