Jump to content

Recommended Posts

hi, i am writing a script that will give users a few options to post to another server depending on their server setup. So far I have cUrl and fsocket, I know php 5 offers HTTP, does any know how to use that to post to another server?

I have tested on a server that has both curl and fsocket disable so I am hoping the HTTP in php 5 will help or if there is any other that would be great.

 

Thanks for any help/guidance :)

dunno how much data you are wanting to allow users to post or the sensitivity of it, but if its small and not sensitive, you could have them xfer by appending a query string to an image request.

 

alternatively, they can xfer via ftp. 

 

But it kind of depends on the data/system overall as to what would be most appropriate/ideal.

Thanks for the reply. I will be sending back values in two variables which are encrypted(hash) but they cannot be retrieved via $_GET as the script will not accept anything other than a post.

I have added fopen to the list which does work great.

Curl works over HTTP by the way. Its the main protocol all web requests are made with. Well most of the time unless you are using a different protocol (https, ftp, etc).

 

As far as I know the only method is via

stream_context_create();
fopen();

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.