?
Solved

Web Broker question: Calling CGI directly

Posted on 2003-03-12
4
Medium Priority
?
252 Views
Last Modified: 2010-04-04
Hi,

I made a simple stand alone cgi using Web broker.

The cgi is just for displaying a word.

If I used POST method, then it's work properly.

But, if I call that CGI directly from web browser by typing :

   http://127.0.0.1/cgi-bin/display.exe/Word?thetext=testing

it does not work.

Anyone know why I cant call Delphi CGI directly from web browser?

I changed to GET method in WebModule1, it still does not work.

Or is there any tricks for this?
0
Comment
Question by:db2trade
[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
4 Comments
 
LVL 21

Expert Comment

by:ziolko
ID: 8118354
what error gives You web browser?
ziolko.
0
 
LVL 17

Accepted Solution

by:
geobul earned 220 total points
ID: 8119295
Hi,

You have to change the way you are reading the parameter. When you are using POST method the data is in the ContentFields (or Content) property. When you are using GET then the data is in the QueryFields (or Query) property.

First check what is the method of the request (Post or Get) and then read the input parameters from Content or Query respectively.

Regards, Geo
0
 
LVL 7

Expert Comment

by:Motaz
ID: 8119493
use get method:

Request.QueryFields.Values['thetext'];
instead of
Request.ContentFields...

Motaz
0
 
LVL 1

Author Comment

by:db2trade
ID: 8136724
Yes, this was the problem :)
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses
Course of the Month15 days, 17 hours left to enroll

741 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