Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / February 2008

Tip: Looking for answers? Try searching our database.

httpWebRequest / Javascript

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Thomas Goodson - 18 Feb 2008 17:16 GMT
Does anybody here have an example of using the httpWebRequest object in
ASP/JavaScript (um...JScript)?  I need the basic ability to retrieve a web
page (most likely requested via a POST) into a string variable.
** Tom **
bruce barker - 18 Feb 2008 18:09 GMT
google is your friend:

http://en.wikipedia.org/wiki/XMLHttpRequest

-- bruce (sqlwork.com)

> Does anybody here have an example of using the httpWebRequest object in
> ASP/JavaScript (um...JScript)?  I need the basic ability to retrieve a
> web page (most likely requested via a POST) into a string variable.
> ** Tom **
Thomas Goodson - 18 Feb 2008 18:26 GMT
Ok, I've seen that page, but it applies to client side usage of the XHR
object and not server side use of the httpWebRequest object.
** Tom **

> google is your friend:
>
[quoted text clipped - 6 lines]
>> web page (most likely requested via a POST) into a string variable.
>> ** Tom **
Peter Bromberg [C# MVP] - 18 Feb 2008 18:22 GMT
HttpWebRequest is a .NET Framework class and represents server-side code. I
think, as Bruce pointed out, that what you want for Javascript (client side
code) is the XmlHttpRequest object.
-- Peter
Site: http://www.eggheadcafe.com
UnBlog: htp://petesbloggerama.blogspot.com
Short Urls & more: http://ittyurl.net

> Does anybody here have an example of using the httpWebRequest object in
> ASP/JavaScript (um...JScript)?  I need the basic ability to retrieve a web
> page (most likely requested via a POST) into a string variable.
> ** Tom **
Thomas Goodson - 18 Feb 2008 18:38 GMT
NOPE!  I do what little ASP programming that I do in JavaScript (yes on the
server side.) Bruce's suggestion was great and I use that code on the client
side, but I need to build a proxy on the server to allow access to content
that is not in my domain. (there's more to it than that, but that will do as
a starting point.)  While I can use the XMLHTTP object via classic asp, I
would prefer to use the httpWebRequest object in asp.net.  The problem is
that I don't program very well in vbscript and all the examples seem to be
in vbscript.  I do program in JavaScript, c, c++, php, etc (it's a long
list)  I spend a lot of time in JavaScript and have written asp pages in the
past using it as the server side scripting language.
** Tom **

> HttpWebRequest is a .NET Framework class and represents server-side code.
> I
[quoted text clipped - 11 lines]
>> page (most likely requested via a POST) into a string variable.
>> ** Tom **

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.