Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ MT-multithreading and servers » How to just Post data ?
How to just Post data ? [message #44538] Wed, 25 March 2015 10:17 Go to next message
akebee is currently offline  akebee
Messages: 90
Registered: August 2011
Location: China
Member
	String url = ~edt_url;
	String header = ~edt_para;
	String data = ~edt_content;
	
	HttpRequest http(url);
	http.AddHeaders(data);
	http.Post(data);
	
	String result = http.Execute(); 


index.php?t=getfile&id=4760&private=0
it does not work,i just want post data to some url;
  • Attachment: Image 2.png
    (Size: 49.30KB, Downloaded 459 times)
Re: How to just Post data ? [message #44577 is a reply to message #44538] Sat, 04 April 2015 09:38 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
What is http.AddHeaders(data); supposed to do?

Mirek
Re: How to just Post data ? [message #44612 is a reply to message #44577] Thu, 23 April 2015 03:22 Go to previous message
akebee is currently offline  akebee
Messages: 90
Registered: August 2011
Location: China
Member

It was just a slip of the pen,
it should be

http.AddHeaders(header);
Previous Topic: [Bug] Httprequest - consecutive requests contain parts of previous requests
Next Topic: Simple class to handle variables used by different threads
Goto Forum:
  


Current Time: Thu Apr 18 13:18:23 CEST 2024

Total time taken to generate the page: 0.01116 seconds