472,374 Members | 1,592 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

make GET with 2 hosts. Strange but necessary.

Hi.

I Need to make a connection to a host "A" and execute a GET with a
header "Host" pointing to host "B"

To be more clear, i'm trying to do something that could be replicated
as:

===========
telnet hostB 80

GET /test.html HTTP/1.1
Host: hostA
===========

I tried with ServerXMLHttp setting the open to "http://hostB/test.html"
and "hostA" as Host in headers... but didn't work.

The reason i need this is that hostB is an IP from a device that does
some processing on "http://hostA/test.html"

i can make a COM that establish the telnet connection to port 80 and do
the GET...but I'm trying to keep it simple... if there's an easier
way....
Any help is more than welcome

Sep 21 '06 #1
2 1067

<Ze*******@gmail.comwrote in message
news:11**********************@i42g2000cwa.googlegr oups.com...
Hi.

I Need to make a connection to a host "A" and execute a GET with a
header "Host" pointing to host "B"

To be more clear, i'm trying to do something that could be replicated
as:

===========
telnet hostB 80

GET /test.html HTTP/1.1
Host: hostA
===========

I tried with ServerXMLHttp setting the open to "http://hostB/test.html"
and "hostA" as Host in headers... but didn't work.

The reason i need this is that hostB is an IP from a device that does
some processing on "http://hostA/test.html"

i can make a COM that establish the telnet connection to port 80 and do
the GET...but I'm trying to keep it simple... if there's an easier
way....
Nope your messing with HTTP at a low level, to do this you will basicaly
need to do it at the socket level.

Are you sure need to do it this way. Can you not get what you need by
adding host headers to the site and/or extra DNS entries?
>
Any help is more than welcome

Sep 21 '06 #2

Anthony Jones ha escrito:

>
Nope your messing with HTTP at a low level, to do this you will basicaly
need to do it at the socket level.

Are you sure need to do it this way. Can you not get what you need by
adding host headers to the site and/or extra DNS entries?
Thanks for your reply.

No, i have to establish the connection to hostB and send the Host
header of hostA. I also have to send some aditional headers for
Authorization and cache control.
The other reason is that hostB is not just one machine, i have to make
this thing to several servers sending the same request to all of them
(so adding a DNS entrie won't work, plus i still need to be able to
access to hostA normally)

i guess i'll have to make it the hard way then.... Thanks.

Sep 21 '06 #3

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

Similar topics

0
by: witichis | last post by:
Hi, using jetty 4.2.9 on redhat with sun jdk 1.4.2_01-b06 When using virtual hosts the java process dies after a few minutes while the CPU load goes slowly from 100% to zero (e-function?) on...
0
by: David Swanson | last post by:
I am trying to configure the proxy section of the machine.config to handle BOTH connecting to hosts that are not "live" but rather defined in my winnt/system32/drivers/etc/hosts file. AND to hosts...
1
by: windandwaves | last post by:
Hi Gurus Please have a look at: http://switch.hosts.net.nz/~admin64/search.php On there, there is a map with image maps. On mouse over, the area and its label highlights. However, on...
7
by: Bob | last post by:
I'm using PHP 5.1.1 with Apache 2.0.54 and several virtual hosts. PHP is installed as a module. I've created a very simple test page containing <?php phpinfo(); ?> and placed it at the doc root...
3
by: senfo | last post by:
I developed a Windows control in VS 2005 that inherits from the PictureBox Control that adds the ability to select images in a Windows application. It is, however, experiencing a strange issue...
19
by: zzw8206262001 | last post by:
Hi,I find a way to make javescript more like c++ or pyhon There is the sample code: function Father(self) //every contructor may have "self" argument { self=self?self:this; ...
0
by: Mr_Noob | last post by:
Hi all, here is a sample on my xml file : <systems> <controllers> <id>1</id> <name>controller1</name> <memory>4096</memory> <hosts>
84
by: Patient Guy | last post by:
Which is the better approach in working with Javascript? 1. Server side processing: Web server gets form input, runs it into the Javascript module, and PHP collects the output for document prep....
1
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Many websites have a form or a link you can use to download a file. You click a form button or click...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
1
by: Johno34 | last post by:
I have this click event on my form. It speaks to a Datasheet Subform Private Sub Command260_Click() Dim r As DAO.Recordset Set r = Form_frmABCD.Form.RecordsetClone r.MoveFirst Do If...
1
by: ezappsrUS | last post by:
Hi, I wonder if someone knows where I am going wrong below. I have a continuous form and two labels where only one would be visible depending on the checkbox being checked or not. Below is the...
0
by: jack2019x | last post by:
hello, Is there code or static lib for hook swapchain present? I wanna hook dxgi swapchain present for dx11 and dx9.

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.