LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 06-16-2009, 10:50 AM   #1
matthewo256
LQ Newbie
 
Registered: May 2009
Posts: 10

Rep: Reputation: 0
Call CGI w/POST variables from shell


I've got a CGI that I'm trying to debug. Apache gives me an ambiguous 500 error; it would be nice to see the raw output via the shell.

I've got the POST request w/headers as follows. What's the best way to troubleshoot this?

POST /cgi/packBoxes.cgi HTTP/1.1
Host: 70.87.60.214
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729)
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://70.87.60.214/cgi/testPackBoxesFilledIn.php
Cache-Control: max-age=0
Content-Type: application/x-www-form-urlencoded
Content-Length: 551
sku1=1456C&particular1=&qty1=4&price1=25.00&weight1=4&size1=34.5x3.5x3.5&type1=normal&sku2=1456C&par ticular2=&qty2=4&price2=25.00&weight2=4&size2=34.5x3.5x3.5&type2=normal&sku3=1456C&particular3=&qty3 =4&price3=25.00&weight3=4&size3=34.5x3.5x3.5&type3=normal&sku4=1456C&particular4=&qty4=4&price4=25.0 0&weight4=4&size4=34.5x3.5x3.5&type4=normal&sku5=1456C&particular5=&qty5=4&price5=25.00&weight5=4&si ze5=34.5x3.5x3.5&type5=normal&shipToCity=Toccoa&shipToState=GA&shipToZip=30577&shipToCountry=United+ States&shipVia=UPS+Ground&shipTerms=Normal&markup=1
 
Old 06-16-2009, 10:53 AM   #2
matthewo256
LQ Newbie
 
Registered: May 2009
Posts: 10

Original Poster
Rep: Reputation: 0
If you want to see the 500 error, submit this form:
http://www.osbornewood.com/cgi/testP...esFilledIn.php

error_log gives details for the problem, but again, I don't know how to debug without seeing the raw output.
Premature end of script headers: /home/osbornew/live/cgi/packBoxes2.cgi
 
  


Reply



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
problem is posting variables in CGI script girish_hilage Programming 8 05-04-2007 10:07 AM
nasm & CGI environment variables rblampain Programming 7 04-15-2007 02:01 AM
CGI shell script (GET/POST?) metalx1000 Programming 1 09-20-2006 07:27 PM
fetching variables with .cgi Tillus Linux - Newbie 3 03-22-2006 10:27 AM
CGI Variables cleared by SuSEfirewall2 fwalthard Linux - Networking 1 06-26-2003 12:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 06:02 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
Open Source Consulting | Domain Registration