?
Solved

How do I recv/trns Carriage Return in CGI script written in C?

Posted on 1997-03-09
1
Medium Priority
?
258 Views
Last Modified: 2013-12-25
Dear Sir/Ms.
     I just want to setup a CGI program(Written in C) which can change the password in the WWW interface.  And the CGI program accpept the Username, Old-Passwd and New-passwd, then it use fork() to generate a child process and create two pipe fdin/fdout to communicate the child process(the child process
is the telnet function on the destination host).  Then the child process use "passwd" command to change the passwd on the destination machine.  The program is working quite well under C shell.  But it really doesn't work under WWW interface, I think the reason is that httpd filters out all the Carriage Return so the command I issue from the parent can't reach the destination.

    Can you tell me how to receive and transmitt Carriage Return through httpd?
 What is  the Carriage Return turned into in the httpd?

     Thanks a lot.

    Please also send your reply to my E-mail box:

         mailto://hyjin@moon.bjnet.edu.cn

Yours,
Teddy
Mar 9, 1997
~
0
Comment
Question by:hyjin
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 1

Accepted Solution

by:
chump earned 0 total points
ID: 1827739
Carriage and linefeed are transmitted as %0D and %0A.

0

Featured Post

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you get a (Blue Screen of Death), your system writes a small file called a minidump. Your first step is to make certain your computer is setup to record memory dumps. Right click My Computer, choose properties. Click on the advanced tab, an…
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

800 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question