Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Community Discussions (All other subjects)
 Source to a site w/out going to it?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

silent_frosty
Junior Member

USA
178 Posts

Posted - 23 February 2004 :  11:22:37  Show Profile  Send silent_frosty an ICQ Message  Send silent_frosty a Yahoo! Message
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  Show Profile  Visit HuwR's Homepage
yes, do a search for xml or httpget, you should find all the info you need is here already.
Go to Top of Page

davemaxwell
Access 2000 Support Moderator

USA
3020 Posts

Posted - 23 February 2004 :  14:08:47  Show Profile  Visit davemaxwell's Homepage  Send davemaxwell an AOL message  Send davemaxwell an ICQ Message  Send davemaxwell a Yahoo! Message
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
Go to Top of Page

silent_frosty
Junior Member

USA
178 Posts

Posted - 23 February 2004 :  21:19:41  Show Profile  Send silent_frosty an ICQ Message  Send silent_frosty a Yahoo! Message
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
Go to Top of Page

davemaxwell
Access 2000 Support Moderator

USA
3020 Posts

Posted - 23 February 2004 :  21:27:32  Show Profile  Visit davemaxwell's Homepage  Send davemaxwell an AOL message  Send davemaxwell an ICQ Message  Send davemaxwell a Yahoo! Message
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
Go to Top of Page

silent_frosty
Junior Member

USA
178 Posts

Posted - 23 February 2004 :  22:15:04  Show Profile  Send silent_frosty an ICQ Message  Send silent_frosty a Yahoo! Message
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.
Go to Top of Page

davemaxwell
Access 2000 Support Moderator

USA
3020 Posts

Posted - 23 February 2004 :  23:31:06  Show Profile  Visit davemaxwell's Homepage  Send davemaxwell an AOL message  Send davemaxwell an ICQ Message  Send davemaxwell a Yahoo! Message
Some places to start:

http://www.4guysfromrolla.com/webtech/110100-1.shtml
(ms xml 3.0) http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk30/htm/xmobjxmlhttprequest.asp
(ms xml 4.0) http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk/htm/xml_obj_ixmlhttprequest_8bp0.asp
http://authors.aspalliance.com/das/xmlhttp.aspx

Dave Maxwell
Barbershop Harmony Freak
Go to Top of Page

silent_frosty
Junior Member

USA
178 Posts

Posted - 24 February 2004 :  10:49:53  Show Profile  Send silent_frosty an ICQ Message  Send silent_frosty a Yahoo! Message
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.
Go to Top of Page

Nathan
Help Moderator

USA
7664 Posts

Posted - 24 February 2004 :  12:34:33  Show Profile  Visit Nathan's Homepage
What site do you want the html of?

Nathan Bales
CoreBoard | Active Users Download
Go to Top of Page

davemaxwell
Access 2000 Support Moderator

USA
3020 Posts

Posted - 24 February 2004 :  13:05:39  Show Profile  Visit davemaxwell's Homepage  Send davemaxwell an AOL message  Send davemaxwell an ICQ Message  Send davemaxwell a Yahoo! Message
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
Go to Top of Page

silent_frosty
Junior Member

USA
178 Posts

Posted - 24 February 2004 :  21:02:54  Show Profile  Send silent_frosty an ICQ Message  Send silent_frosty a Yahoo! Message
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.
Go to Top of Page

Dave.
Senior Member

USA
1037 Posts

Posted - 24 February 2004 :  21:20:37  Show Profile
Um, if your just getting HTML, why not Do a 'Save target as...'?
Go to Top of Page

silent_frosty
Junior Member

USA
178 Posts

Posted - 24 February 2004 :  21:28:36  Show Profile  Send silent_frosty an ICQ Message  Send silent_frosty a Yahoo! Message
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.
Go to Top of Page

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 25 February 2004 :  03:46:33  Show Profile  Visit Gremlin's Homepage
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
Go to Top of Page

Roland
Advanced Member

Netherlands
9335 Posts

Posted - 25 February 2004 :  08:30:18  Show Profile
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.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.45 seconds. Powered By: Snitz Forums 2000 Version 3.4.07