Solved

Indy HTTP Post gives error 404

Posted on 2013-01-25
6
1,078 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
  • 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 26

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
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 
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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Introduction One of the frequent application design questions goes something like this: "How can I confirm when a client registers on my web site?" The registration might be for general use of a self-administered site like a forum, or for attend…
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…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

810 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