Forum Moderators: coopster

Message Too Old, No Replies

Defining REMOTE_PORT

         

bluedevs

6:28 pm on Oct 31, 2005 (gmt 0)

10+ Year Member



When I use my browser to post a form, the socket ($_SERVER['REMOTE_PORT']) used is somthing around the 2000.

But when I'm using curl to post my forms (so from my server), the socket used is around the 50000.

Now I'm experiencing some problems with posting forms through curl, because some servers reject my post-request. But, the postvars and headers are indentical (browser and curl on server). Only the socket differs.

Is it possible that my post-request is rejected because of this? And if so, is there a way to set the socket I want to use.

Thanks in advance,
John

coopster

9:32 pm on Nov 6, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, bluedevs.

Can you check the logs on the remote servers to see what the issue may be? That would be the best way to confirm exactly what is causing you issues.