Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Indy HTTP Post gives error 404

Posted on 2013-01-25
6
Medium Priority
?
1,113 Views
Last Modified: 2013-02-02
Hi

I have a delphi-program where I execute a php-file. It worked, and suddently I get the error 404 (page not found). entering the same link in the browser works and if I don't call it in a subdirectory it also works!

      IdHTTP1.Post('http://www.mysite.ch/tmp/EMail.php',vparam);

Open in new window

gives the error

      IdHTTP1.Post('http://www.mysite.ch/EMail.php',vparam);

Open in new window

is ok (I have a copy of that php in both directories to test it.

Where can be the problem? Thanks for every idea!
0
Comment
Question by:formi
[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
  • 3
  • 2
6 Comments
 
LVL 51

Expert Comment

by:ahoffmann
ID: 38821621
did you check your web server configuration if /tmp is mapped somewhere else
(in apache with Alias, Location directives)
0
 

Author Comment

by:formi
ID: 38821638
I don't know exactly what you mean (I'm not the web-expert) but I think that you mean there is not a real folder but it's only an alias. No, it is a real folder and I just made another test: if I rename the folder from "tmp" to "tmpxx" I can access it. If I rename it again to "tmp" I get the error 404! Very strange behaviour!

This issue is valid for each php, working in tmpxx, not working in tmp!
0
 
LVL 28

Expert Comment

by:Sinisa Vuk
ID: 38823135
I check for /tmp folder in indy source and found that it is notified in: IdSSLOpenSSLHeaders.
My guess is that it is used in some web servers too for temporary reason and I think that it should not be used. Use 'tools' sub-folder for example.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 51

Expert Comment

by:ahoffmann
ID: 38823692
please  check your web server configuration again
0
 

Accepted Solution

by:
formi earned 0 total points
ID: 38826278
I got the the solution from my provider: they locked executing posts in /tmp-directory as security-reasons. Thanks anyway for your help.
0
 

Author Closing Comment

by:formi
ID: 38846345
Solution was not provided
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

636 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