Reply to Open a https url on a special port ? (asp/ajax inside)

Your name:

Reply:


Posted by Arnaud on 03/17/06 17:58

Hi,

I'm trying to translate an asp application in a php way, i'm using Php
4.3.x.
I'm going to try an asp newsgroup too, but as it mainly deals with Php, I
would like to submit you my probem :

I have to retrieve some XML datas from a server whose URL is built like that
:
https://myserver:4012/code/myapp?param1=3;

I tried fopen, fsockopen with no result.

So it's https, there is a port (4012 for example). Perhaps I forgot some
particular https parameters with my fopen and fsockopen tries ?

The original asp code is :
---
Set myxml = Server.CreateObject("Msxml2.ServerXMLHTTP.4.0")
' Opens the connection to the remote server :
xml.Open "GET", url, False
---

Php methods didn't work so I tried the ajax way :
if(window.XMLHttpRequest){
// Firefox, Safari, Opera...
req = new XMLHttpRequest();
} else if(window.ActiveXObject) {
// Internet Explorer 5+
req = new ActiveXObject("Microsoft.XMLHTTP");
} else {
alert('Problem creating the XMLHttpRequest object');
return false;
}
return req;

.... But i'm not sure the ActiveXObject is identical to the original :
Set myxml = Server.CreateObject("Msxml2.ServerXMLHTTP.4.0")

So if you have any ideas to do it with Php or any other technical ways, you
are welcome.

Thanks,
Arnaud

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация