473,386 Members | 1,736 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Need help - Using Javascript to talk to a remote server

Hello -

I am trying to embed JavaScript to an ASP page which will be executed
on the server side and will send a HTTP request from the ASP Web server
another remote server. Then I need to capture the remote server's
response and save it as a string.

Any help will be greatly appreciated.

Thanks!

Aug 3 '06 #1
4 1541
I am trying to embed JavaScript to an ASP page which will be executed
on the server side and will send a HTTP request from the ASP Web server
another remote server. Then I need to capture the remote server's
response and save it as a string.
If I understand correctly, you want to send an HTTP request from server
to server via javascript? If so, why not just send out an HTTP request
via an ASP server mechanism (socket, SOAP, curl)? That would be the
logical decision, to me.

Aug 3 '06 #2
RoyX wrote on 03 aug 2006 in comp.lang.javascript:
I am trying to embed JavaScript to an ASP page which will be executed
on the server side and will send a HTTP request from the ASP Web server
another remote server. Then I need to capture the remote server's
response and save it as a string.
<http://www.aspfaq.com/show.asp?id=2173>

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Aug 3 '06 #3
Bob - Thanks for your quick response. You got it right - and I agree
with your recommended way for doing this.

However, we are trying to initiate this communication only when an ASP
page is processed via user input. We are working with 3rd party
software here and dont have much of a choice.

So it would be great if you could provide any guidance.

Thanks again.

bobzimuta wrote:
I am trying to embed JavaScript to an ASP page which will be executed
on the server side and will send a HTTP request from the ASP Web server
another remote server. Then I need to capture the remote server's
response and save it as a string.

If I understand correctly, you want to send an HTTP request from server
to server via javascript? If so, why not just send out an HTTP request
via an ASP server mechanism (socket, SOAP, curl)? That would be the
logical decision, to me.
Aug 3 '06 #4
However, we are trying to initiate this communication only when an ASP
page is processed via user input. We are working with 3rd party
software here and dont have much of a choice.

So it would be great if you could provide any guidance.
I really think you'd be better served asking this in an ASP group, as
this is technically server-server communication. There must be some
kind of (lib)curl functionality in ASP, but I have no experience with
that.

I'd suggest analyzing the needs of the communication as best as
possible; there must be some kind of way to get the location (url) you
are trying to access and then initiate the communication via a proper
server-side method. Sorry couldn't be any more help.

Aug 3 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Rainer Rosenberger | last post by:
Hello, in an intranet we have the requirement to communicate between two browser windows, e.g. read hidden fields or execute functions in other window. This works fine as long as both windows come...
2
by: Alex | last post by:
Hi all, I'm writing a small web application which searches a database based on a date field, and populates a datagrid control with the results. The datagrid control has selection buttons added...
15
by: Cheryl Langdon | last post by:
Hello everyone, This is my first attempt at getting help in this manner. Please forgive me if this is an inappropriate request. I suddenly find myself in urgent need of instruction on how to...
16
by: pamelafluente | last post by:
I am still working with no success on that client/server problem. I need your help. I will submit simplified versions of my problem so we can see clearly what is going on. My model: A client...
1
by: Ted | last post by:
I managed to get it installed OK, along side MS Visual Studio 2005 (with which I received it). During the install, I made sure I installed everything. I have developed a number of applications...
1
by: Roy X | last post by:
Hello - I am trying to embed JavaScript to an ASP page which will be executed on the server side and will send a HTTP request from the ASP Web server another remote server. Then I need to...
5
by: Lambuz | last post by:
First of all, is it possible usign .NET remoting feature inside a .NET applet loaded into a tag object inside an HTML page ? <OBJECT id="myID" height="150" width="300"...
3
by: Mairhtin O'Feannag | last post by:
Hello all, I seem to be having difficulties finding a tool that will allow me to debug my PHP scripts on a remote server. All the tools I have found that run on windows, assume a windows...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.