Jump to content

wget --post-data usage with php


shahansudu

Recommended Posts

I'm not sure what your asking... Can you explain in general what your trying to do?

 

Sorry... well this is what I need to do. I have a set of data on one machine, I need to transfer it to another only optin I have is to post this data through https://. So I wrote a php script on the server and tried sending data with the wget command

 

wget https://domain/file.php?name=value&name1=value1&...

 

but for some reason only the first value is send (vlaue in the case above). When I checked the man page for wget I saw that there is a option '--post-data' where i can send asting. I did it and I see the data being send but I donr know how I can save this data on the server. I used $_GET with a variable but it didnt work (it make sense that just a variable will not store that value either there is a especial variable or something). So what I need is to store this data I post through wget.

 

Than you for your help

Link to comment
Share on other sites

wget has nothing to do with php. Your actual question is also a little ahrd to follow. Are you having problems sending or recieving? If sending (assuming your using wget via exec) dont use wget, use the curl extension. If recieving.... explain your issue.

Link to comment
Share on other sites

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.