LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   got an http error using wget (https://www.linuxquestions.org/questions/linux-newbie-8/got-an-http-error-using-wget-706241/)

elthox 02-20-2009 12:20 PM

got an http error 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

colucix 02-20-2009 12:26 PM

Try
Code:

wget --post-data="SendEmail?serverName=serverA&msgBody=werty" http://10.1.21.236:8585/pns.asmx

elthox 02-23-2009 02:00 AM

Hi,

I still get this response

[@VAS-SRV1 ~]$ wget --post-data="SendEmail?serverName=serverA&msgBody=werty" http://10.1.21.236:8585/pns.asmx
--08:57:51-- http://10.1.21.236:8585/pns.asmx
Connecting to 10.1.21.236:8585... connected.
HTTP request sent, awaiting response... 500 Internal Server Error
08:57:59 ERROR 500: Internal Server Error.

P.S The only difference between your given resolution and the previous one I tried is that at yours "awating response" process has a delay of 5 seconds and then gives the error.


All times are GMT -5. The time now is 04:11 PM.