Author |
Topic  |
|
silent_frosty
Junior Member
 
USA
178 Posts |
Posted - 23 February 2004 : 11:22:37
|
Is this possible? Is there a program or something that allows a user to get the source code to a webpage without actually visiting it? |
Life is a waste of time. Time is a waste of life. So get wasted all of the time and have the time of your life. |
|
HuwR
Forum Admin
    
United Kingdom
20595 Posts |
Posted - 23 February 2004 : 12:05:02
|
yes, do a search for xml or httpget, you should find all the info you need is here already. |
 |
|
davemaxwell
Access 2000 Support Moderator
    
USA
3020 Posts |
Posted - 23 February 2004 : 14:08:47
|
Are you talking about asp source or html output? If you're talking asp source code, then the answer would be no since all the source is processed at the server then served to the client.
If you're talking about the server-built output, then Huw's answer would stand. |
Dave Maxwell Barbershop Harmony Freak |
 |
|
silent_frosty
Junior Member
 
USA
178 Posts |
Posted - 23 February 2004 : 21:19:41
|
I'm talking about getting the source code for a site built in HTML, not asp or any of that. Like for example: my site (which hasnt been worked on for ages) which is basically just HTML. The site that I want to get the source to is a site that we send spammers/lamers to when in chat :P. It has a popup that comes up and a loop function, but it also has some other things, and I can't ever view the source before it shuts itself down :(. |
Life is a waste of time. Time is a waste of life. So get wasted all of the time and have the time of your life. |
Edited by - silent_frosty on 23 February 2004 22:16:17 |
 |
|
davemaxwell
Access 2000 Support Moderator
    
USA
3020 Posts |
Posted - 23 February 2004 : 21:27:32
|
You can use the ms xmlhttp object to get the code that comes back from a call. I can get you the code tomorrow when I get to work. It just requires MSXML 3.0 to be installed on the server executing the code.... |
Dave Maxwell Barbershop Harmony Freak |
 |
|
silent_frosty
Junior Member
 
USA
178 Posts |
Posted - 23 February 2004 : 22:15:04
|
ok, you totally lost me there, sorry :(. Isn't there any other way :P? If you could put that into simpler terms that would be great, I do have MS XML 4.0 Parser SDK installed. My dad's technicians installed it when they fixed our computer (had some registry probs that prevented us from gettin on the net). I did a search for xmlhttp and httpget and xml, but I dont know what to do with them :( I read up on as much as i could, but im still lost... :'( |
Life is a waste of time. Time is a waste of life. So get wasted all of the time and have the time of your life. |
 |
|
davemaxwell
Access 2000 Support Moderator
    
USA
3020 Posts |
|
silent_frosty
Junior Member
 
USA
178 Posts |
Posted - 24 February 2004 : 10:49:53
|
I read all those sites, but they all seem to deal with getting ASP from a site. And if I did use that, where do I put the code that they give to get the source? (I'm kinda new to this) |
Life is a waste of time. Time is a waste of life. So get wasted all of the time and have the time of your life. |
 |
|
Nathan
Help Moderator
    
USA
7664 Posts |
|
davemaxwell
Access 2000 Support Moderator
    
USA
3020 Posts |
Posted - 24 February 2004 : 13:05:39
|
No it doesn't get asp. It gets the source returned from the called page.
All you would need is something like this:
<%
Response.Buffer = True
Dim objXMLHTTP, xml
' Create an xmlhttp object:
Set xml = Server.CreateObject("Microsoft.XMLHTTP")
' Or, for version 3.0 of XMLHTTP, use:
' Set xml = Server.CreateObject("MSXML2.ServerXMLHTTP")
' Opens the connection to the remote server.
xml.Open "GET", "your page address goes here....", False
' Actually Sends the request and returns the data:
xml.Send
' xml.responsetext contains ALL the html output
' that would result from that calling page. You could just
' put it into a text variable if you wanted....
Response.Write xml.responseText
Set xml = Nothing
%>
|
Dave Maxwell Barbershop Harmony Freak |
 |
|
silent_frosty
Junior Member
 
USA
178 Posts |
Posted - 24 February 2004 : 21:02:54
|
What do I do with that? I've never used XML or any other language but HTML. Do I put that in a page? or does it act like a program? |
Life is a waste of time. Time is a waste of life. So get wasted all of the time and have the time of your life. |
 |
|
Dave.
Senior Member
   
USA
1037 Posts |
Posted - 24 February 2004 : 21:20:37
|
Um, if your just getting HTML, why not Do a 'Save target as...'? |
 |
|
silent_frosty
Junior Member
 
USA
178 Posts |
Posted - 24 February 2004 : 21:28:36
|
Oh lol, didn't really think of that  |
Life is a waste of time. Time is a waste of life. So get wasted all of the time and have the time of your life. |
 |
|
Gremlin
General Help Moderator
    
New Zealand
7528 Posts |
Posted - 25 February 2004 : 03:46:33
|
But you'll have to visit the site to do that, according to the first post you wanted to avoid doing that didn't you? |
Kiwihosting.Net - The Forum Hosting Specialists
|
 |
|
Roland
Advanced Member
    
Netherlands
9335 Posts |
Posted - 25 February 2004 : 08:30:18
|
If you don't want to visit the site yourself because of pop-ups and all that, just make sure you have a good pop-up blocker installed and running, and disable JavaScript (and whatever else could be causing problems) before you go to the site. Then you shouldn't have any problems viewing the page(s) and getting to the source. |
 |
|
|
Topic  |
|