LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-19-2006, 06:53 PM   #1
Bill K
LQ Newbie
 
Registered: May 2006
Posts: 1

Rep: Reputation: 0
How do I use Linux POST command to send text to remote server


I have some soap/xml text (currently in a file) that I need to send to a remote server for processing via http (or https) and wait for a response message. It looks like the lwp-request (GET, HEAD, POST) command can do it but am having trouble getting it to work. Does anyone have any examples of how do to this from the bash command line?
 
Old 05-19-2006, 09:26 PM   #2
ataraxia
Member
 
Registered: Apr 2006
Location: Pittsburgh
Distribution: Debian Sid AMD64
Posts: 296

Rep: Reputation: 30
You can use the 'curl' utility to do this. Since you're doing SOAP, you need to use https. This can be tough - you need to have the right client certs set up.
Code:
curl --data @your-file --cacert your-ca-cert-bundle https://your.url/
The '@' is important.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Post Your Noteworthy Or Unique Linux Command Line Hints Here AwesomeMachine Linux - General 1 10-24-2005 01:33 AM
Help needed to send mail using a remote smtp server with php s1mpl1c1ty Programming 4 09-19-2005 12:53 AM
Send text message from windows to linux ok goutham_v Linux - General 3 04-18-2004 01:07 PM
Redhat Linux, send mail, & Post nuke? DCPAQ2 Linux - Newbie 0 03-03-2004 04:03 AM
How to send message to other user(online) on the text mode of Linux ??? owen Linux - General 2 01-10-2004 01:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:17 AM.

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