Welcome Guest, Not a member yet? Register   Sign In
CI Proxy Library - Browser simulator (REST, Cookies and Proxy Support, PURE PHP) [NEW] HTTP Authorization
#11

[eluser]toopay[/eluser]
[UPDATED]V 1.0.4

MORE FEATURES(All old feature still there):

Google Geocoding API Functionality.

Geocoding is the process of converting addresses (like "1600 Amphitheatre Parkway, Mountain View, CA") into geographic coordinates (like latitude 37.423021 and longitude -122.083739), which you can use to place markers or position the map. The Google Geocoding API provides a direct way to access a geocoder via an HTTP request. Additionally, the service allows you to perform the converse operation (turning coordinates into addresses); this process is known as "reverse geocoding."



Code:
$this->load->library('proxy');
// Generate json response by address
$map_data = $this->proxy->geocode('1600 Amphitheatre Parkway, Mountain View, CA');
// Generate json response by latlng
$map_data = $this->proxy->geocode(array('40.714224','-73.961452'));
// Generate xml response by latlng and set sensor to TRUE
$map_data = $this->proxy->geocode(array(40.714224,-73.961452),'XML',TRUE);
Download Proxy Library on wiki
#12

[eluser]Unknown[/eluser]
Great work, this looks really good!

I have been playing with it and I got an error when I tried render a controller/method that I set up:

$this->load->library('proxy');
$this->proxy->controller('test/testing/1',TRUE);

"An Error Was Encountered
php_network_getaddresses: getaddrinfo failed: Name or service not known [ERROR_CODE] = 0"

Do you have any idea if there is anything that I did wrong? Thank you!
#13

[eluser]toopay[/eluser]
Are you set your htaccess properly? How you normally access that controller, how its url looks like?
#14

[eluser]Tominator[/eluser]
Hi man!

This lib looks pretty useful, does the function return sorce code of page or it just display the page. I mean can I work with page (I want to make a bot), or can I just show it?

Tom.
#15

[eluser]toopay[/eluser]
You can do both!
Code:
$this->load->library('proxy');
// You can save the full response in a variable
$some_site = $this->proxy->site('www.somesite.com');
// If you want directly display it, add second params to true
$this->proxy->site('www.somesite.com',TRUE);
Download it on Wiki, and you can see the full reference on Readme.txt
#16

[eluser]Tominator[/eluser]
It seems like a really great job! I have bookmarked this page and I will probably use it my next project. I'll be in June or July, than I'll write you some feedback.

Thanks anyway, for this great lib.

Tom.
#17

[eluser]nermion[/eluser]
Hi

is it possible to click on links or submit forms with this browser simulator?
#18

[eluser]toopay[/eluser]
That would be the next features.
#19

[eluser]nermion[/eluser]
when do you plan to have these features added and released? Smile)
#20

[eluser]toopay[/eluser]
As soon as i have some free time.




Theme © iAndrew 2016 - Forum software by © MyBB