View Full Version : http.submit and phpnuke
brdga
10-11-2004, 10:20 AM
I'm trying to get an xml document from a site that uses phpnuke. Specifically, I am trying to use the xml doc which is used for the site RSS feed. I tried http.download but the file returned merely contained the text "Leave this site now!". I can download the file using a link from another webpage and using rightclick>save as. So, apparently this is a matter of formatting the request properly. I then tried http.submit to get the file, but to no avail. Perhaps, it's the values argument that must be right. I'm really not sure.
Intrigued
10-11-2004, 10:23 AM
This sounds like a good job for the official XML plugin:
http://www.autoplay.org/plugin/xml.php
brdga
10-11-2004, 10:44 AM
Yes it does. However, From what I understand the plugin is useful for manipulating and using xml documents, but they must first be loaded. That's where I seem to be running into a problem. Actually obtaining the xml document.
Intrigued
10-11-2004, 12:46 PM
Ah.. I see.
rhosk
10-11-2004, 01:16 PM
brdga,
Post the code and link that you're trying to download and let's take a look at it. Is this a plain old xml file? Or is it an xml file that's parsed by php. Either way, provide the link and I'm sure we can resolve this.
brdga
10-11-2004, 04:07 PM
I appears to be an xml file that is parsed by php. the address is http://2e1x1.net/phpnuke/html/rdf-nuke.php
As far as relevant code, I'm at a complete loss as to how to do this now.
Intrigued
10-11-2004, 06:57 PM
It appears that site's webhost prefer one not do what you are trying to do (Screen Scrap).
If I understood your originial request (and upon rereading such).
I have not personally gotten into parsing, XML, and PHP arrangements just yet.
But, this did not work from PHP (same message you got, I received):
<?php
$page = file_get_contents('http://2e1x1.net/phpnuke/html/backend.php');
print $page;
?>
Note: I also tried the link you posted as the URL in the PHP script.
Sincerely,
But then... I sured don't want the rath of the Computer Operators on my backside and I suspect you would not either! :eek:
brdga
10-11-2004, 11:43 PM
Well the site owner is a veryclose friend who has asked me to build this little app. So, I have no wrath to fear :) However, he's understandably not willing to loosen the security restrictions.
The fact that I can get it with IE/Mozilla and RSS news readers get it ok tells me that I still just need to find the right way of formatting the request. I'll get it eventually.
Intrigued
10-12-2004, 10:12 AM
Well the site owner is a veryclose friend who has asked me to build this little app. So, I have no wrath to fear :) However, he's understandably not willing to loosen the security restrictions.
The fact that I can get it with IE/Mozilla and RSS news readers get it ok tells me that I still just need to find the right way of formatting the request. I'll get it eventually.
Have you asked the site operator on how to accomplish this? Or, is this to show I can do it and thus I can't ask him/her sort of arrangement?
Just a thought... wish I could be of more help. Hopefully the PHP guru's will arrive shortly to help you out. ;)
Sincerely,
rhosk
10-12-2004, 10:35 AM
Try this :)
This might do it for you too:
BTW, the above can be used to get the source of almost any text file from a web server.
rhosk
10-12-2004, 12:34 PM
BTW, the above can be used to get the source of almost any text file from a web server.
Well, that probably eliminates brdga's next question :)
Intrigued
10-12-2004, 01:07 PM
*Saved those two gems myself! Nice.
Thanks for the DLL Worm. This will come in handy. I’ve had a similar problem before of needing what the script returned, this answers that nicely. I wonder how hard it would be for I. R. to add a ‘save as’ function for the Web Object. I’m happy to have your DLL, but if it was easy enough to include, this might make a useful addition to the core of AMS.
I don’t mean to give you the cold shoulder Ron, I just haven’t downloaded and tried your version yet. I’m sure that like your other posts, it’s a winner too.
Glad I downloaded that Media Player example you posted before you pulled it. I plan on checking it out soon, thanks. So much to do, so little time. :)
brdga
10-19-2004, 08:21 PM
Thanks for all the help people. That did the trick Worm. I'm on easy street now. Thanks a ton.
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.