PC Review


Reply
Thread Tools Rate Thread

Adding an action to a POST Using HttpWebRequest

 
 
EagleRed@HighFlyingBirds.com
Guest
Posts: n/a
 
      9th Sep 2009
I am writing a service to retrieve data via a HttpWebRequest with the method
set to POST. I am having some trouble getting a correct response. I need to
be able to set the action on the POST request apart from the URL. The
documentation on the Web server says the POST should look something like:

POST /app/AnAppServlet HTTP/1.1

However when I append this to the address in the URL, the app locks up. The
Web server us running HTTPS with a client certificate. My code seems to
handle the certificate OK if I set the URL to simply address the Web server,
except it responds with an empty Web page. I need to invoke a servlet on the
server.

I see a way to set a SOAPAction via a request header but this is not SOAP.

Any help would be appreciated.

Thanks,
Eagle
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
HttpWebRequest POST no longer working to Canada Post website leeedw@hotmail.com Microsoft VB .NET 1 28th Nov 2006 05:04 PM
HttpWebRequest POST Sergio Costa Faria Microsoft ASP .NET 4 31st May 2006 09:04 PM
HttpWebRequest POST result is not the same as POST via ServerXMLHT =?Utf-8?B?RGF2ZSBCcm93bg==?= Microsoft ASP .NET 1 10th Nov 2005 07:49 PM
Re: HTTPwebRequest post HELP Randy Microsoft Dot NET 2 19th Jul 2003 12:28 AM
Re: HTTPwebRequest post HELP vMike Microsoft Dot NET 0 18th Jul 2003 09:14 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:12 AM.