Solved

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

Posted on 1997-03-09
1
243 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

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

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…
Recently I have been answering a lot of questions like this in IT forums that I frequent. The question posed is usually something along the lines of "We have software X installed and need to uninstall it for reason Y" or some other variant of the sa…
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

738 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