Jump to content

HTTP Objects, where can i get a list of these ?!


Armand
 Share

Recommended Posts

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

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:

<!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&nbsp;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>&nbsp;</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>&nbsp;</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>&nbsp;</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&nbsp;&nbsp;3Com&nbsp;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 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

From

http://www.checkupdown.com/status/E501.html

HTTP Error 501 - Not implemented

Introduction

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

@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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...