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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.