Jump to content

Archived

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

grazzman

Question about dumping results

Recommended Posts

Hey,

I need to grab the results of a CGI script and dump it into a variable without HTML in the results. I'm looking to do kind of what lynxs would do with the following....

lynx -dump -auth=user:pass https://somedomain.com/account.cgi?account=account123       

I need to do this but without using lynx.... If anyone can just point me in the right direction, I should be able to google the rest... If I can get the page into a variable, then I can pars the information that I need out of the results. I'm not sure if fopen or if any of the f commands will do this. If anyone has any ideas, please let me know.

Thanks

Share this post


Link to post
Share on other sites
Use the
CURL, Client URL Library Functions to achieve your objective.

Share this post


Link to post
Share on other sites
fopen and such can open a url if allow_url_fopen is true. if you need to post data to the remote url, use the CURL library as suggested by gluck

Share this post


Link to post
Share on other sites

×

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.