Uploading to a remote server using PHP/CURL
-
Using PHP/CURL, how to upload a file to a remote server wherein the user must be logged in first? thanks
-
Answer:
FYI CURL can pass authentication credentials along like this: curl --user USER:PASSWORD -s http://localhost:4848/monitoring/domain/server/transaction-service But it depends on what the server is expecting. EDIT: Here's how to send POST data: curl --data "birthyear=1905&press=%20OK%20" http://www.example.com/when.cgi Please ask if you have any questions.
macki at Stack Overflow Visit the source
Related Q & A:
- How To Build Business Directory Using Php Mysql?Best solution by Stack Overflow
- Is it possible to allow a client/user to log into a Remote Desktop session using credentials other than their AD username/password? (for SSO?Best solution by Server Fault
- how delete node in xml file using php?Best solution by Stack Overflow
- How to read csv file using php?Best solution by Stack Overflow
- How to send data from device to remote server?Best solution by Stack Overflow
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.