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 » sending post message
sending post message [message #17375] Sat, 09 August 2008 21:43
TeCNoYoTTa is currently offline  TeCNoYoTTa
Messages: 138
Registered: July 2008
Location: Egypt
Experienced Member

hello

i want to send this message to the server

Quote:

POST /test/vb/login.php?do=login HTTP/1.1
Host: cisclub.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q= 0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://cisclub.com/test/vb/newthread.php?do=newthread&f= 2&
Authorization: Basic b25lOm9uZQ==
Content-Type: application/x-www-form-urlencoded
Content-Length: 246

do=login&url=%2Ftest%2Fvb%2Fnewthread.php%3Fdo%3Dnewthre ad%26f%3D2%26&vb_login_md5password=e10adc3949ba59abbe56e 057f20f883e&vb_login_md5password_utf=e10adc3949ba59abbe5 6e057f20f883e&s=&securitytoken=guest&vb_login_us ername=cisl&vb_login_password=


i did this

HttpClient x;
	x.Method(HttpClient::METHOD_POST);
	x.URL("http://cisclub.com/test/vb/newthread.php?do=newthread&f=2");
	x.AddHeaders("Content-Type: application/x-www-form-urlencoded");
	x.KeepAlive(true);
	x.PostData(LoadFile("posttest.txt"));
	Progress pro;
	String respond = x.ExecuteRedirect(HttpClient::DEFAULT_MAX_REDIRECT,HttpClient::DEFAULT_RETRIES,pro);
	SaveFile("headers.txt",x.GetHeaders());
	SaveFile("respond.html",respond);


but the progress bar moves veryyyyy slow

and i find this in the log file

Quote:

* D:\Program Files\upp\out\MINGW.Debug.Debug_full.Gui\posttest.exe 09.08.2008 22:42:15, user: TeCNoYoTTa

socket host = cisclub.com:80
host = cisclub.com, port = 80
request: POST /test/vb/newthread.php?do=newthread&f=2 HTTP/1.1
URL: http://cisclub.com/test/vb/newthread.php?do=newthread&f= 2
Host: cisclub.com
Connection: keep-alive
Keep-alive: 300
Accept: */*
Accept-Encoding: gzip
Agent: Ultimate++ HTTP client
Content-Length: 243
Authorization: basic b25lOm9uZQ==
Content-Type: application/x-www-form-urlencoded
do=login&url=%2Ftest%2Fvb%2Fnewthread.php%3Fdo%3Dnewthre ad%26f%3D2&vb_login_md5password=e10adc3949ba59abbe56e057 f20f883e&vb_login_md5password_utf=e10adc3949ba59abbe56e0 57f20f883e&s=&securitytoken=guest&vb_login_usern ame=cisl&vb_login_password=

[Updated on: Sat, 09 August 2008 21:44]

Report message to a moderator

Previous Topic: knowing download speed and ProgressIndicator
Next Topic: Socket in a sock
Goto Forum:
  


Current Time: Thu Mar 28 15:43:45 CET 2024

Total time taken to generate the page: 0.01490 seconds