Armand Posted December 21, 2007 Share Posted December 21, 2007 well... i've read about the error i always get : 501 Not Implemented; and it seems like that error is happening due to the OBJ i use: MSXML2.ServerXMLHTTP; so i've figured i should use some other obj, so i've used: winhttp.winhttprequest.5.1; which sends me the same results... any other objects i should/could try using ?any help will be appreciated - THANKS IN ADVANCE ! [u]My Au3 Scripts:[/u]____________(E)Lephant, A Share download manager (RS/MU etc)Http1.1 Console, The Ez Way!Internet Reconnection Automation Suite & A Macro Recording Tool.SK's Alarm Clock, Playing '.MP3 & .Wav' Files._________________Is GOD a mistake of the Humanity Or the Humanity is a mistake of GOD ?! Link to comment Share on other sites More sharing options...
BrettF Posted December 21, 2007 Share Posted December 21, 2007 Do you have the code, so we can see maybe where you might be going wrong? Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
Armand Posted December 21, 2007 Author Share Posted December 21, 2007 (edited) well... i can't be "going wrong" on some routers/servers it works all OK, and on some specific ones it says: "501 Not Implemented" anyhow, the HTML SOURCE CODE i'm trying to automate using "MSXML2.ServerXMLHTTP" obj, with "POST" method: expandcollapse popup<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META NAME=Copyright CONTENT="Copyright (c) 2006 3Com Corporation. All Rights Reserved."> <META http-equiv=Content-Type content="text/html; charset=utf-8"> <META HTTP-EQUIV="Pragma" CONTENT="no-cache"> <TITLE>System Tools - Restart </TITLE> <!-- External Javascript file implementing Help popup window --> <link rel="stylesheet" href="main.css" type="text/css"> <script src="helpscript.js"></SCRIPT> <script src="javafunction.js"></script> <script language=Javascript><!-- function GURL(x){location=x} function makeSure() { ret = false; statusLineYBold("Waiting for User Confirmation"); if (confirm("The system is about to shut down.\n Press OK to continue.")) { statusLineYBold("Requesting information from the Router"); GURL('reboot_nocommit.htm'); ret=true; } else { statusLineMessage('The changed has been saved to the temporary buffer.'); ret=false; } return ret; //statusLineMessage('The changed has been saved to the temporary buffer.'); } //--> </SCRIPT> </HEAD> <BODY bgColor=#99cccc leftMargin=0 topMargin=0 MARGINWIDTH="0" MARGINHEIGHT="0" BORDER="0" onload="statusLineBold('The changed has been saved to the temporary buffer.')"> <!-- banner --> <table width=100% height=75 border=0 cellspacing=0 cellpadding=5> <tr><td class=subtitle valign=bottom background=sky_bg.gif> <IMG src="bannertxt.gif"><BR> <IMG src="pixel.gif" border=0 width=35 height=1>System Tools </td></tr></table> <!-- tabs --> <table height=18 border=0 cellspacing=0 cellpadding=0> <tr> <td bgcolor=#99cccc align=left valign=top width=18><IMG src=sky_tableftcurve.gif border=0 ></TD> <td bgcolor=#99cccc align=middle valign=center><A HREF=systools_restart.htm class=select>Restart</TD> <td bgcolor=#99cccc align=right valign=top width=18><IMG src=sky_tabrightcurve.gif border=0></TD> <td bgcolor=#669999 align=left valign=top width=18><IMG src=sky_tableftcurve.gif border=0 ></TD> <td bgcolor=#669999 align=middle valign=center><A HREF=systools_timezone.htm class=unselect>Time Zone</TD> <td bgcolor=#669999 align=right valign=top width=18><IMG src=sky_tabrightcurve.gif border=0></TD> <td bgcolor=#669999 align=left valign=top width=18><IMG src=sky_tableftcurve.gif border=0 ></TD> <td bgcolor=#669999 align=middle valign=center><A HREF=restore.htm class=unselect>Configuration</TD> <td bgcolor=#669999 align=right valign=top width=18><IMG src=sky_tabrightcurve.gif border=0></TD> <td bgcolor=#669999 align=left valign=top width=18><IMG src=sky_tableftcurve.gif border=0 ></TD> <td bgcolor=#669999 align=middle valign=center><A HREF=vd_upld.htm class=unselect>Upgrade</TD> <td bgcolor=#669999 align=right valign=top width=18><IMG src=sky_tabrightcurve.gif border=0></TD> <td width=1000 background=sky_tabbg.gif align=middle valign=center> </TD> </tr></table> <!-- start content --> <table border=0> <tr> <td colSpan=3><IMG height=10 src="pixel.gif" border=0></td></tr> <tr> <form method="post" action="reboot.htm" name="RebootForm" > <input type="hidden" name="do_submit" value=""> <input type="hidden" name="page" value="systools_restart"> <input type="hidden" name="press" value="0"> <td width=30> </td> <!-- content : data --> <td> <TABLE cellSpacing=2 cellPadding=3 border=0> <TBODY> <TR> <TD class=titleCell colspan=2>Restart</TD></TR> <TR> <TD class=textCellC colspan=2> <TABLE cellPadding=10 border=0 width=100%> <TR><TD class=textCellC> Please press the button to restart the Router<BR><BR> <INPUT class=button type=button value="Restart the Router..." onclick="java script:makeSure();"><BR><BR> <HR> <b>Note:</b> Users will be disconnected from the Internet while the Router is restarting. </TD></TR></TABLE> </TD> </TR> </TBODY></TABLE> </td> <!-- content: buttons --> <td width=100 align=right valign=top> <p> </p> <p><INPUT class=actButton type=button value=Help onclick="popupHelp('h_restart.htm')"> </p> </td> </FORM> </tr></table> <!-- copyright --> <table width=100% height=1000 border=0 cellspacing=0 cellpadding=0> <TR><TD class="copyright" valign=bottom > Copyright (c) 2006 3Com Corporation. All Rights Reserved. </TD></TR></table> </BODY></HTML> And the server reply: <HTML><HEAD><TITLE>501 Not Implemented</TITLE></HEAD> <BODY BGCOLOR="#cc9999"><H4>501 Not Implemented</H4> That method is not implemented. </BODY></HTML> Any clue ? Edited December 21, 2007 by Armand [u]My Au3 Scripts:[/u]____________(E)Lephant, A Share download manager (RS/MU etc)Http1.1 Console, The Ez Way!Internet Reconnection Automation Suite & A Macro Recording Tool.SK's Alarm Clock, Playing '.MP3 & .Wav' Files._________________Is GOD a mistake of the Humanity Or the Humanity is a mistake of GOD ?! Link to comment Share on other sites More sharing options...
BrettF Posted December 21, 2007 Share Posted December 21, 2007 I actually kinda meant your script... The one that uses the "MSXML2.ServerXMLHTTP" object... Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
ValeryVal Posted December 21, 2007 Share Posted December 21, 2007 From http://www.checkupdown.com/status/E501.htmlHTTP Error 501 - Not implementedIntroduction Your Web server does not understand or does not support the HTTP method it finds in the HTTP data stream sent to it by the client (e.g. a Web browser or our CheckUpDown robot). The methods defined by the HTTP protocol are as follows: * OPTIONS: Find out the communication options available for a particular URL resource. Allows the client to determine the options and/or requirements associated with a resource, or the capabilities of a server, without a specific action involving transfer of data. * GET: Retrieve the information identified by the URL resource e.g. GET a particular Web page or image. The most common method by far. * HEAD: Identical to GET except that the server returns header information only, not the actual information identified by the URL resource. Useful to obtain metainformation about the entity implied by the request without transferring the entity-body itself. Often used to test hypertext links for validity, accessibility, and recent modification. * POST: Submit data to the Web server such as 1) post a message to a bulletin board, newsgroup or mailing list, 2) provide input data - typically from a CGI form - to a data-handling process, 3) add a record directly to a database.AutoIt's request is wrong, I think The point of world view Link to comment Share on other sites More sharing options...
Armand Posted December 21, 2007 Author Share Posted December 21, 2007 @Valery since i've already used google to look this error up, i've found out that it's not the method that is wrong, since the method i use ["POST"] is the same mentioned in the HTML source ["<form method="post"], however it seems like it's the protocol which is incorrect... instead of using "MSXML2.ServerXMLHTTP" i want to use "HTTP/1.1" or "HTTP/1.0" but i don't know which Objs support these... [u]My Au3 Scripts:[/u]____________(E)Lephant, A Share download manager (RS/MU etc)Http1.1 Console, The Ez Way!Internet Reconnection Automation Suite & A Macro Recording Tool.SK's Alarm Clock, Playing '.MP3 & .Wav' Files._________________Is GOD a mistake of the Humanity Or the Humanity is a mistake of GOD ?! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now