Sponsored Content
Top Forums UNIX for Dummies Questions & Answers cant make a http get request using wget Post 302289801 by elthox on Friday 20th of February 2009 01:32:03 PM
Old 02-20-2009
cant make a http get request using wget

Hi all,

Im trying to make an http get request to a web service from a linux machine like below and i get ERROR 500

wget http://10.1.21.236:8585/pns.asmx/Sen...&msgBody=werty
[1] 25018
[elton@VAS-SRV1 ~]$ --19:06:32-- http://10.1.21.236:8585/pns.asmx/Sen...erName=serverA
Connecting to 10.1.21.236:8585... connected.
HTTP request sent, awaiting response... 500 Internal Server Error
19:06:32 ERROR 500: Internal Server Error.


[1]+ Exit 1 wget http://10.1.21.236:8585/pns.asmx/Sen...erName=serverA

When i Run it from a windows machine is working properly. There is no network problem as well

[elton@VAS-SRV1 ~]$ telnet 10.1.21.236 8585
Trying 10.1.21.236...
Connected to 10.1.21.236 (10.1.21.236).

Please any help
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

wget using wildcards using http

Hi there, probably a really simple question but i want to download all .rpm files from a web repository which happens to be http and not ftp Ive tried using wget, but as far as i can see it doesnt allow for wilcards (ie wget http://address/*.rpm) does anybody know i can get all these files in... (2 Replies)
Discussion started by: hcclnoodles
2 Replies

2. UNIX for Dummies Questions & Answers

unix script http request

Hi everybody, I have a *.vbs file which I want to run automatically. I want to know if there is anyway to implement the given example for e.g "http://255.255.255.55/script.vbs" what I mean is does anyone know how to make an http request from a unix script?? Thanks in advance!!!!!!!!!!! (1 Reply)
Discussion started by: arksal
1 Replies

3. Shell Programming and Scripting

Http request in Linux

Hi, i need a guide how to write a script which i can do a http request. Let say the request look like below; http://www.test.com?txid=1&type=service&server=linux I have a list of "txid" (in *.txt) and need to run all "txid" acordingly. So that mean, every transaction i have to refer "txid"... (7 Replies)
Discussion started by: malaysoul
7 Replies

4. UNIX for Dummies Questions & Answers

http request forward

Hi, Maybe it's a stupid question, anyway here goes.. I have an Apache web server on Solaris box, let's say A, with a public ip and a web application on a Linux box, uhmmm B, on a private lan with a private ip. I want the people from outside to connect to the app, but its inside the lan,... (4 Replies)
Discussion started by: piltrafa
4 Replies

5. UNIX for Dummies Questions & Answers

HTTP request

Can anybody tell about http request processing in shell script..? (3 Replies)
Discussion started by: noufal
3 Replies

6. Web Development

Copy and forward apache http request

Hello, I am using apache 2.2 and I need to have certain http requests (those including example.com for instance) to be executed normally and forwarded to another server. With mod_rewrite, I could easily forward but then the input request would not be executed on my server. Right? Am I... (1 Reply)
Discussion started by: JCR
1 Replies

7. Shell Programming and Scripting

Formatting wget request within script

When using a browser and calling this url .. the data returns the proper range of information ichart dot finance dot yahoo dot com/table.csv?s=YAHOO&a=3&b=14&c=2012&d=03&e=20&f=2012&g=d&ignore.csv (geeze wont let me post url's sorry ) However in my script the formatting is messing up on... (4 Replies)
Discussion started by: harte
4 Replies

8. Programming

C++ http GET request using sockets

Hello I am trying to communicate with a server that is ready to accept HTTP GET requests and send back data per the request. However, I have very little experience in socket programming and I don't really know how to debug this. Googling on the web hasn't yielded much, except people saying I... (2 Replies)
Discussion started by: flagman5
2 Replies

9. Shell Programming and Scripting

http request

I am running a website but I still have problems with the "service temporarily unavailable error". I want to make a simple check if the website is up and running. Does anybody has an idea how to do it? (the site is password protected, so you have to add a user and pwd before logging in). ... (2 Replies)
Discussion started by: jurgen
2 Replies

10. Shell Programming and Scripting

Parsing the http post request

Hi, I am trying to write a shell script to parse the post request data that it received to a xml file. Below is the post request data that script is receiving. -----------------------------7dd2339190c8e Content-Disposition: form-data; name="param1" 1... (2 Replies)
Discussion started by: jdp
2 Replies
OCF_HEARTBEAT_APACHE(7) 					OCF resource agents					   OCF_HEARTBEAT_APACHE(7)

NAME
ocf_heartbeat_apache - Manages an Apache web server instance SYNOPSIS
apache [start | stop | status | monitor | meta-data | validate-all] DESCRIPTION
This is the resource agent for the Apache web server. This resource agent operates both version 1.x and version 2.x Apache servers. The start operation ends with a loop in which monitor is repeatedly called to make sure that the server started and that it is operational. Hence, if the monitor operation does not succeed within the start operation timeout, the apache resource will end with an error status. The monitor operation by default loads the server status page which depends on the mod_status module and the corresponding configuration file (usually /etc/apache2/mod_status.conf). Make sure that the server status page works and that the access is allowed *only* from localhost (address 127.0.0.1). See the statusurl and testregex attributes for more details. See also http://httpd.apache.org/ SUPPORTED PARAMETERS
configfile The full pathname of the Apache configuration file. This file is parsed to provide defaults for various other resource agent parameters. (unique, optional, string, default /etc/apache2/httpd.conf) httpd The full pathname of the httpd binary (optional). (optional, string, default /usr/sbin/httpd) port A port number that we can probe for status information using the statusurl. This will default to the port number found in the configuration file, or 80, if none can be found in the configuration file. .sp (optional, integer, no default) statusurl The URL to monitor (the apache server status page by default). If left unspecified, it will be inferred from the apache configuration file. .sp If you set this, make sure that it succeeds *only* from the localhost (127.0.0.1). Otherwise, it may happen that the cluster complains about the resource being active on multiple nodes. (optional, string, no default) testregex Regular expression to match in the output of statusurl. Case insensitive. (optional, string, default exists, but impossible to show in a human readable format (try grep testregex)) client Client to use to query to Apache. If not specified, the RA will try to find one on the system. Currently, wget and curl are supported. For example, you can set this parameter to "curl" if you prefer that to wget. (optional, string, no default) testurl URL to test. If it does not start with "http", then it's considered to be relative to the Listen address. (optional, string, no default) testregex10 Regular expression to match in the output of testurl. Case insensitive. (optional, string, no default) testconffile A file which contains test configuration. Could be useful if you have to check more than one web application or in case sensitive info should be passed as arguments (passwords). Furthermore, using a config file is the only way to specify certain parameters. .sp Please see README.webapps for examples and file description. (optional, string, no default) testname Name of the test within the test configuration file. (optional, string, no default) options Extra options to apply when starting apache. See man httpd(8). (optional, string, no default) envfiles Files (one or more) which contain extra environment variables. If you want to prevent script from reading the default file, set this parameter to empty string. (optional, string, default /etc/apache2/envvars) SUPPORTED ACTIONS
This resource agent supports the following actions (operations): start Starts the resource. Suggested minimum timeout: 40s. stop Stops the resource. Suggested minimum timeout: 60s. status Performs a status check. Suggested minimum timeout: 30s. monitor Performs a detailed status check. Suggested minimum timeout: 20s. Suggested interval: 10. meta-data Retrieves resource agent metadata (internal use only). Suggested minimum timeout: 5. validate-all Performs a validation of the resource configuration. Suggested minimum timeout: 5. EXAMPLE
The following is an example configuration for a apache resource using the crm(8) shell: primitive p_apache ocf:heartbeat:apache op monitor depth="0" timeout="20s" interval="10" SEE ALSO
http://www.linux-ha.org/wiki/apache_(resource_agent) AUTHOR
Linux-HA contributors (see the resource agent source for information about individual authors) resource-agents UNKNOWN 03/09/2014 OCF_HEARTBEAT_APACHE(7)
All times are GMT -4. The time now is 05:12 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy