|
Home > Archive > Apache Server configuration support > June 2007 > confirm http post to php script
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
confirm http post to php script
|
|
| ColinK 2007-06-16, 7:18 pm |
| Hi
If this is not the correct place to post please advise where I should
post.
I want to confirm if http posts are being made to a:
windows server with Apache HTTP Server Version 2.0.
Firstly, I am working beyond my experience here, unfortunately I also
think my programmer is working beyond their experience and I do not
have enough experience to check their script.
I have servers (belonging to 3rd parties) that are periodically
sending HTTP posts to their respective php pages on my develpers test
server.
eg
http://00.000.00.000:90/demo/test1.php
http://00.000.00.000:90/demo/test1.php
My developer is convinced the third party servers are NOT posting to
the respective pages, because their php page is not sending data to
the associated mysql database.
Both third parties have double checked that their server is posting to
the correct page.
I presume that there could be multiple reasons why the database is not
being updated and presume it is not the 3rd parties fault.
I have 2 queries:
1. Sould my developers server have some log which confirms that HTTP
posts have been attempted? How should my developer check this 'log'?
What information will the log give?
2. Is there some very simple script or procedure that could be put in
place to capture at least one of these posts and read the http
content?
Thanks in anticipation
ColinK
| |
| Davide Bianchi 2007-06-17, 7:18 am |
| On 2007-06-16, ColinK <iam247@gmail.com> wrote:
> I want to confirm if http posts are being made to a:
> windows server with Apache HTTP Server Version 2.0.
?? "confirm if http posts are being made" ??
> I have servers (belonging to 3rd parties) that are periodically
> sending HTTP posts to their respective php pages on my develpers test
> server.
So they are basically opening a connection and send a http request
with a POST mode.
> My developer is convinced the third party servers are NOT posting to
> the respective pages
Check the log files, if there is a request there should be an entry
in the log detailing who, when and what.
> 1. Sould my developers server have some log which confirms that HTTP
Yep. Look at the CustomLog directive in your apache configuration file.
> How should my developer check this 'log'?
Just look into it. It's a simple text file.
> What information will the log give?
It depends which format you use in your config file, the default one
should give you way more informations than you need.
> 2. Is there some very simple script or procedure that could be put in
> place to capture at least one of these posts and read the http
> content?
If you are receiving the request you could change your php script to log
more informations, but since the existence of the request is in doubt
here, first check if a request is made, and then go to the next step.
Davide
--
Linus was the instructor of Hercules in music, but having one day reproved
his pupil rather harshly, he roused the anger of Hercules, who struck him
with his lyre and killed him.
| |
| shimmyshack 2007-06-17, 7:23 pm |
| On Jun 16, 9:31 pm, ColinK <iam...@gmail.com> wrote:
> Hi
>
> If this is not the correct place to post please advise where I should
> post.
>
> I want to confirm if http posts are being made to a:
>
> windows server with Apache HTTP Server Version 2.0.
>
> Firstly, I am working beyond my experience here, unfortunately I also
> think my programmer is working beyond their experience and I do not
> have enough experience to check their script.
>
> I have servers (belonging to 3rd parties) that are periodically
> sending HTTP posts to their respective php pages on my develpers test
> server.
>
> eghttp://00.000.00.000:90/demo/test1.phphttp://00.000.00.000:90/demo/test1.php
>
> My developer is convinced the third party servers are NOT posting to
> the respective pages, because their php page is not sending data to
> the associated mysql database.
>
> Both third parties have double checked that their server is posting to
> the correct page.
>
> I presume that there could be multiple reasons why the database is not
> being updated and presume it is not the 3rd parties fault.
>
> I have 2 queries:
>
> 1. Sould my developers server have some log which confirms that HTTP
> posts have been attempted? How should my developer check this 'log'?
> What information will the log give?
>
> 2. Is there some very simple script or procedure that could be put in
> place to capture at least one of these posts and read the http
> content?
>
> Thanks in anticipation
>
> ColinK
There are a number of ways, the easiest is to have no network traffic
going on, then make the 3rd party server POST, and watch the icon, is
info sent?
POST to your server using a 3rd party YOU control - ie write a webpage
which posts to the URL, and run it from outside your network to test.
Run a local proxy (wireshark) on the server which shows the HTTP
traffic in real time, then when the POST occurs from the third party
you can watch the packets flowing by and check the data.
Write a php script that just dumps the POST data thats it
<?php
file_put_contents('post_dump_'.date("F_j_Y_g_i_a").'.txt',implode('|',
$_POST)); exit; ?>
does it produce a dump file with the contents you expect.
There are many other ways, but just relax, it's only a job!
|
|
|
|
|