Sponsored Content
Top Forums UNIX for Advanced & Expert Users Checking response from a web page Post 302379663 by ahamed on Friday 11th of December 2009 10:44:54 AM
Old 12-11-2009
Checking response from a web page

wget --spider --user=xxxx --password=xxxx "http://xxx.xxxx.com" > /dev/null 2>&1;

I am using the above command in if loop to check the response of the page without downloading the page. I just want to check whether the page is up and running. But when i execute the command i am getting

HTTP request sent, awaiting response... 500 Internal Server Error
10:37:02 ERROR 500: Internal Server Error

can someone tell me why i am getting the error.
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Accessing Web Page

Hello, I am new to unix, but wanted to know how can we fetch data from a web page (i.e. an HTML Page), my requirement is to read an html page and wanted to create a flat file (text file) based on the contents available in the mentioned HTML page. Thanks Imtiaz (3 Replies)
Discussion started by: Imtiaz
3 Replies

2. Programming

fetching a web page in C

Hello, I'm a total newbie to HTTP commands, so I'm not sure how to do this. What I'd like is to write a C program to fetch the contents of a html page of a given address. Could someone help with this? Thanks in advance! (4 Replies)
Discussion started by: rayne
4 Replies

3. UNIX Desktop Questions & Answers

Get a web page through CLI

Is there a way we can get a web page through CLI on a unix machine? Please help! (3 Replies)
Discussion started by: Pouchie1
3 Replies

4. Shell Programming and Scripting

Printing to a web page

I have a shell script that runs periodic upgrades on machines. I want to print certain echo commands from the shell script onto a webpage. What command in shell should I use for doing this. (1 Reply)
Discussion started by: lassimanji
1 Replies

5. Shell Programming and Scripting

Checking response of the web page?

Hi, I need to check the response of the web page without downloading any content. I used the below command. _website=http://xxx.xxx.com wget --spider --user=username --password=password $_website > /home/username/temp.txt 2>&1; I getting the below error. The web page require... (3 Replies)
Discussion started by: ahamed
3 Replies

6. Web Development

Apache Web Server - Invalid Response

Hi, I have a SCO Unix Openserver V6 server which is hosting a website with Apache V1.3 as the http server. The web site has an initial login screen which re-directs to another page once the user name and password has been verified. When connecting to the website and trying to login, it times... (0 Replies)
Discussion started by: Martyn
0 Replies

7. Shell Programming and Scripting

Checking for Apache and serving a page

hi i was trying to run the HTML script and was unable to run it as the apache server was not loaded on my linux server.....how do i check whether A[pache has been installed in my server or not.....???? (1 Reply)
Discussion started by: kullu
1 Replies

8. IP Networking

Tshark/pcap and web-server response time

Hi everyone! How can I get response time difference between GET and HTTP/1.0 200 OK (i mean time latency of web-server) with using of tshark&shell or something else for each hostname from pcap file? What can you recommend me to do that? (1 Reply)
Discussion started by: lepetal
1 Replies

9. Red Hat

Getting the response code and to know whether web site is loaded

Hi Guys, Is there any way that we can know whether a website is fullly loaded with Linux command line ?? is there any command in Linux that can achieve that ?? Also,naturally I would also like to get the response code of the particular website/URL that i am testing for ?? Any help would be... (3 Replies)
Discussion started by: Pradeep_1990
3 Replies
wbemexec(1)															       wbemexec(1)

NAME
wbemexec - submit a CIM operation request to a CIM Server SYNOPSIS
wbemexec [ -h hostname ] [ -p portnumber ] [ -v httpversion ] [ -m httpmethod ] [ -t timeout ] [ -u username ] [ -w password ] [ -s ] [ --help ] [ --version ] [ inputfilepath ] DESCRIPTION
The wbemexec command provides a command line interface to a CIM Server. The input to the command consists of a CIM request encoded in XML. The request is submitted to the CIM Server for execution. If the HTTP response from the CIM Server contains a status code of 200 (OK), the result returned to stdout is the CIM response encoded in XML. Otherwise, the result returned to stdout is the HTTP response. Some types of invalid XML requests (e.g. missing PROTOCOLVERSION attribute or missing NAME attribute) are detected by wbemexec, and result in an error message from wbemexec. Other invalid XML requests (e.g. invalid CIMVERSION attribute value or missing XML version), are detected by the CIM Server, and result in an HTTP response, containing a non-Success status code, such as 501 (Not Implemented) or 400 (Bad Request). By default, the request is sent as an HTTP/1.1 request, using the HTTP M-POST method, and wbemexec waits 20000 milliseconds (20 seconds), then times out if a response hasn't been received. Input is read from stdin, if no input file is specified. By default, the operation is executed on the local host. wbemexec first attempts to connect to the CIM Server on the default port for the wbem-http service, and if that fails, another attempt is made on the default port for the wbem-https service. Options wbemexec recognizes the following options: -h hostname Connect to the CIM Server on the specified host. If this option is not specified, wbemexec connects to the local host. --help Display command usage information. -m httpmethod Use the specified HTTP method for the request. The method must be "POST" or "M-POST". -p portnumber Connect to the CIM Server on the specified port number. If this option is not specified, wbemexec connects to the default port for the wbem-http service, or if the -s option is specified, to the default port for the wbem-https ser- vice. -s Enable the use of the SSL protocol between and the CIM server. The -s option should be specified if the CIM Server on the specified hostname/portnumber expects clients to connect using HTTPS. -t timeout Wait the specified number of milliseconds on sending a request, before timing out if no response has been received. The timeout value must be an integer value greater than 0. -u username Connect as the specified R username . If username is not specified, the current logged in user is used for authenti- cation. This option is ignored if neither hostname nor portnumber is specified. -v httpversion Use the specified HTTP version for the request. The version must be "1.0" or "1.1". The 1.0 version may not be specified if the M-POST method is specified. --version Display CIM Server version. -w password Authenticate the connection using the specified password . This option is ignored if neither hostname nor portnumber is specified. WARNING: A password should not be specified on the command line on a multi-user system, since command- line options are typically world-readable for a short window of time. If the remote host requests authentication and this option is not specified, wbemexec will prompt for the password. (See cimconfig (1) for information on configur- ing the CIM Server.) EXIT STATUS
When an error occurs, an explanatory error message is written to stderr and an appropriate value is returned. The following exit values are returned: 0 Success 1 Error USAGE NOTE
The wbemexec command requires that the CIM Server is running. EXAMPLES
Submit an XML request contained in the file cimrequest.xml to the CIM Server running on the local host on the default port: wbemexec cimrequest.xml Submit an XML request contained in the file cimrequest.xml to the CIM Server running on the host hpserver on port 49152, using the username guest and password guest for authentication: wbemexec -h hpserver -p 49152 -u guest -w guest cimrequest.xml SEE ALSO
cimserver(1), cimconfig(1). STANDARDS CONFORMANCE
wbemexec: CIM Operations over HTTP 1.0, Representation of CIM in XML 2.0 wbemexec(1)
All times are GMT -4. The time now is 03:18 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy