Solved

Indy HTTP Post gives error 404

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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 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…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

911 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now