Solved

POST method with Location use

Posted on 1998-07-06
7
127 Views
Last Modified: 2013-12-25
Problem on Microsoft Internet Explorer 3.0 and Netcape Navigator - OK on Netscape Communicator.

When I call a CGI with a POST method, this CGI ending with a Location statement, my navigator loops, and gives no response. The GET method is OK, but I don't want to use it for at less one reason.

Thierry - FRANCE
0
Comment
Question by:tplai
[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
  • 2
  • 2
  • 2
  • +1
7 Comments
 
LVL 2

Accepted Solution

by:
WDB earned 100 total points
ID: 1830519
Do not set the MIME type
(i.e. do not set Content-type: text/html)
0
 

Author Comment

by:tplai
ID: 1830520
I don't set Content-type: text/html when I use the statement "Location" ! Location is the first thing my CGI sends to the navigator.

Thierry - FRANCE
0
 

Expert Comment

by:barlav
ID: 1830521
print "Location: some machine/some directory/some file"
I use this in my cgi scripts and it works fine with Ie 3.0 and Netscape as long as I don't set Content-type: text/html. My cgi's are also called with post methods.
0
How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

 
LVL 6

Expert Comment

by:alamo
ID: 1830522
Thierry, apparently there is some odd problem with the exact form of the Location: directive you are using.

To help debug this, you must tell us 2 things: the exact print statement used to send Location (you can disguise the url if you want), and the type of web server you are using.

The server is useful to know because the Location directive is sent to and interpreted by the server, not directly to the browser. Anyone trying to duplicate this problem with a different server might not be duplicating the same problem.
0
 

Author Comment

by:tplai
ID: 1830523
To alamo:

Here are the 2 things you want to know :

1/ the exact print statement used to send Location is, in C language : fprintf(stdout, "Location:/cgi-bin/mycgi.cgi?_Session=123456&_Action=LOGIN&_Destinat=456789%c%c", 10, 10);

2/ the type of web server I am using is Netscape Enterprise Server, but the problem is the same with Netscape Commerce Server.

Thierry - FRANCE




0
 
LVL 2

Expert Comment

by:WDB
ID: 1830524
Try using the complete path of your location.

  fprintf(stdout,"Location: http://www.some_domain.com/cgi-bin/mycgi.cgi?_Session=123456&_Action=LOGIN&_Destinat=456789%c%c", 10, 10);
0
 
LVL 6

Expert Comment

by:alamo
ID: 1830525
tplai, did you ever solve this problem?
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction This tutorial will give you a fast look what you can do with WhizBase. I expect you already know how to work with HTML at least, and that you understand the basics of the internet and how the internet works. WhizBase is a server-s…
In threads here at EE, each comment has a unique Identifier (ID). It is easy to get the full path for an ID via the right-click context menu. However, we often want to post a short link within a thread rather than the full link. This article shows a…
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
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 …

726 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