LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-20-2009, 01:20 PM   #1
elthox
Member
 
Registered: Oct 2006
Posts: 41

Rep: Reputation: 15
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
 
Old 02-20-2009, 01:26 PM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978
Try
Code:
wget --post-data="SendEmail?serverName=serverA&msgBody=werty" http://10.1.21.236:8585/pns.asmx
 
Old 02-23-2009, 03:00 AM   #3
elthox
Member
 
Registered: Oct 2006
Posts: 41

Original Poster
Rep: Reputation: 15
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
this shell cmd doesn't work : wget 'http://localhost' -O -|iconv -f GB1321 -t UTF8 linuxtyh Linux - General 2 12-02-2008 02:24 AM
Background http/ftp downloader software wtihout GUI (wget wrapper). ErV Linux - Software 3 09-01-2008 05:43 PM
Incremental Downloading: wget http://www.mysite.org/pic[001-125].jpg fc6_user Programming 5 04-04-2007 11:25 AM
Wget & MnoGoSearch http request problem (size) havik Linux - Software 0 09-28-2005 08:21 AM
Any somebody tell me HOW can I get the file list from ftp(http) server by wget? wuzhong Linux - Networking 2 09-07-2004 09:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration