Operating System - HP-UX
1843964 Members
1970 Online
110226 Solutions
New Discussion

Re: Using httppost from unix shell script

 

Using httppost from unix shell script

Hi,

Can any one tell me whether it is possible to use httppost from unix shell scripts or not ?
4 REPLIES 4
Nicolas Dumeige
Esteemed Contributor

Re: Using httppost from unix shell script

Hello,

Yes it's possible and good news it's already done for you with RFC comliance !!!

Check CGI section here :
http://www.shelldorado.com/scripts/categories.html#category1

Cheers

Nicolas
All different, all Unix
Andris Mednis
Advisor

Re: Using httppost from unix shell script

Look at cURL ( http://curl.haxx.se ). From cURL home page: "Curl is a command line tool for transferring files with URL syntax, supporting FTP, FTPS, HTTP, HTTPS, GOPHER, TELNET, DICT, FILE and LDAP. Curl supports HTTPS certificates, HTTP POST, HTTP PUT, FTP uploading, kerberos, HTTP form based upload, proxies, cookies, user+password authentication, file transfer resume, http proxy tunneling and a busload of other useful tricks.". You have to compile it yourself or download binaries (see for example http://hpux.connect.org.uk/hppd/hpux/Networking/WWW/curl-7.9.8/ ).

Re: Using httppost from unix shell script

Hi Nicholas & Andris,

I have tried to use both but lo luck. I am more interested to use it from shell scripts so that I can modify the script as and when required and it can be used on other platforms also. Do you have any such scripts to use httppost?


I also tried with the compiled program from shelldorado site but it is giving library error.

Thanks

Champak
Nicolas Dumeige
Esteemed Contributor

Re: Using httppost from unix shell script

Champak,

If you want a multi-platform use Perl wich has great CGI capabilities. Shell is no match for perl for this.

"I also tried with the compiled program from shelldorado site but it is giving library error."

There's nothing to compile !!! Scripts are interpreted. What's the exact error message you're getting ?

Cheers

Nicolas
All different, all Unix