shahansudu Posted August 8, 2007 Share Posted August 8, 2007 Hi, I'm want to post a string to a server. And using the 'wget --post-data' command. how can I retrive this posted data on the server using a php script? thanx Quote Link to comment https://forums.phpfreaks.com/topic/63813-wget-post-data-usage-with-php/ Share on other sites More sharing options...
tibberous Posted August 8, 2007 Share Posted August 8, 2007 I'm not sure what your asking... Can you explain in general what your trying to do? Quote Link to comment https://forums.phpfreaks.com/topic/63813-wget-post-data-usage-with-php/#findComment-318026 Share on other sites More sharing options...
shahansudu Posted August 8, 2007 Author Share Posted August 8, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/63813-wget-post-data-usage-with-php/#findComment-318036 Share on other sites More sharing options...
trq Posted August 8, 2007 Share Posted August 8, 2007 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. Quote Link to comment https://forums.phpfreaks.com/topic/63813-wget-post-data-usage-with-php/#findComment-318125 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.