Saturday, November 1, 2014

#1 2012-03-27 03:41:03 pm

spartan_steve
Member
Registered: 2012-03-26
Posts: 2

cURL for .PHP

I am working to parse data from a page listed as .com/searchresults.php. The result of my do shell script cURL is "".  Is there any way to capture the page source code so I can parse with Applescript's text item delimiter?

noob so be gentle.

thanks!

Steve


Filed under: cURL, php

Offline

 

#2 2012-03-28 04:15:59 am

DJ Bazzie Wazzie
Member
From: the Netherlands
Registered: 2004-10-20
Posts: 1970

Re: cURL for .PHP

PHP source codes can't be viewed unless you deassign the extension from the module or turn the php module off. That's because the PHP code is never been send over the network but the result of interpretation of the file(s) is send to the user.

So if curl only shows you "" then there is really nothing send back from the server to the client except from HTTP headers.


Kind regards

Offline

 

#3 2012-03-28 08:55:22 am

spartan_steve
Member
Registered: 2012-03-26
Posts: 2

Re: cURL for .PHP

I found a workaround by simply using system events to view the source code, select it all, copy and set a variable to the clipboard. Not elegant, but worked well.

thanks!

Steve

Offline

 

Board footer

Powered by FluxBB

[ Generated in 0.020 seconds, 8 queries executed ]

RSS (new topics) RSS (active topics)