Raised This Month: $32 Target: $400
 8% 

Get html source from a url


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
thEsp
BANNED
Join Date: Aug 2017
Old 03-06-2019 , 13:54   Get html source from a url
Reply With Quote #1

Hello, how can I get html source code using pawn?
Which is something like this:
PHP Code:
get_url_html_source("https://www.google.com/",myString
Is it even possible, or do I need to use other modules?
thanks.

Last edited by thEsp; 03-06-2019 at 13:54.
thEsp is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 03-06-2019 , 22:09   Re: Get html source from a url
Reply With Quote #2

It's possible. You can download files with this.

If you want more control over things or you need the the source code in a variable, you can check out some of the other socket tutorials listed here.
__________________

Last edited by fysiks; 03-06-2019 at 22:09.
fysiks is offline
thEsp
BANNED
Join Date: Aug 2017
Old 03-07-2019 , 13:52   Re: Get html source from a url
Reply With Quote #3

Quote:
Originally Posted by fysiks View Post
It's possible. You can download files with this.

If you want more control over things or you need the the source code in a variable, you can check out some of the other socket tutorials listed here.
I've took a look at the first Inc file you provided, I just was not sure whether it will download a html source or a file. As for the second I'll take a look later...
Regardless thank you !
thEsp is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 03-07-2019 , 23:21   Re: Get html source from a url
Reply With Quote #4

Quote:
Originally Posted by thEsp View Post
I've took a look at the first Inc file you provided, I just was not sure whether it will download a html source or a file. As for the second I'll take a look later...
Regardless thank you !
HTML source is a file.
__________________
fysiks is offline
PartialCloning
Senior Member
Join Date: Dec 2015
Old 03-09-2019 , 17:04   Re: Get html source from a url
Reply With Quote #5

Quote:
Originally Posted by fysiks View Post
It's possible. You can download files with this.

If you want more control over things or you need the the source code in a variable, you can check out some of the other socket tutorials listed here.
That likely won't work with HTTPS.
PartialCloning is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 03-10-2019 , 00:43   Re: Get html source from a url
Reply With Quote #6

Quote:
Originally Posted by PartialCloning View Post
That likely won't work with HTTPS.
That's probably true.
__________________
fysiks is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:43.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode