Solved

Post problem

Posted on 2001-08-09
1
257 Views
Last Modified: 2010-04-06
hi
I use the TNMHTTP componnent to get and post
the get work good
I try to do post and it is not working
can some one give me example

I need to write file into servlet , how can i do it
what is "put"
there any one better way to sent a lot of file into servlet i am using apache

thank
0
Comment
Question by:krelman
1 Comment
 
LVL 1

Accepted Solution

by:
sundayboys earned 175 total points
ID: 6367629
hi
this is example:
1.write a txt file,like this:
name=csdn&url=csdn.net&password=1232&helpid=id1234
2.in delphi:
NMHTTP1.InputFileMode:=False;
NMHTTP1.OutputFileMode:=True; //must is True;
NMHTTP1.ReportLevel:=Status_Basic;
NMHTTP1.Post('http://127.0.0.1/test.asp','tmp.txt');


TNMHTTP is not a good choice,try TWebBrowser component.
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question