Solved

Indy HTTP Post gives error 404

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

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
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

747 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

12 Experts available now in Live!

Get 1:1 Help Now