473,833 Members | 2,167 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

http object

is there a .net object that lets me use the http verbs
like get, put, post?
Nov 15 '05 #1
3 1560
HttpWebRequest

"john" <jo**@john.co m> wrote in message
news:00******** *************** *****@phx.gbl.. .
is there a .net object that lets me use the http verbs
like get, put, post?

Nov 15 '05 #2
really? which method do i use? i've only been able to
pass a url into the HttpWebRequest. I need to literally
call Put, Post and Get verbs.
-----Original Message-----
HttpWebReque st

"john" <jo**@john.co m> wrote in message
news:00******* *************** ******@phx.gbl. ..
is there a .net object that lets me use the http verbs
like get, put, post?

.

Nov 15 '05 #3

HttpWebRequest objRequest = (HttpWebRequest )WebRequest.Cre ate(strURL);
objRequest.Meth od = "GET";
HttpWebResponse objResponse = (HttpWebRespons e)objRequest.Ge tResponse();
"john" <jo**@john.co m> wrote in message
news:02******** *************** *****@phx.gbl.. .
really? which method do i use? i've only been able to
pass a url into the HttpWebRequest. I need to literally
call Put, Post and Get verbs.
-----Original Message-----
HttpWebReque st

"john" <jo**@john.co m> wrote in message
news:00******* *************** ******@phx.gbl. ..
is there a .net object that lets me use the http verbs
like get, put, post?

.

Nov 15 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
9296
by: Michael Foord | last post by:
#!/usr/bin/python -u # 15-09-04 # v1.0.0 # auth_example.py # A simple script manually demonstrating basic authentication. # Copyright Michael Foord # Free to use, modify and relicense. # No warranty express or implied for the accuracy, fitness to purpose
0
1238
by: boohoo | last post by:
Let's say I want to use the msxml object to call a web page from within my script, and on the querystring or "in the header" of that request I want to include a dictionary object, such that the called .asp page can then request the object to it's script and use the dictionary object. Has anyone seen anything that describes marshaling an object into an http request header?
5
4555
by: Mark | last post by:
Hi, I want to run in my .Net Windows Form this statement System.Diagnostics.Process.Start(strURLCommand) to open the browser and navigate to the specified URL. The URL is an ASP.Net Web Page with authentication mode="Forms". In this way, the browser displaies the
0
899
by: spartanNTX | last post by:
Hello, I am trying to create a custom HTTP module implementing the IHttpModule interface. 1 event handler in the module does not get passed the HttpApplication as an argument when it is called. I need to Response.Redirect the user after this event has taken place and I can not find a way to access the Response object. I have tried setting a class member variable equal to the httpapplication object in the init method and also I have...
6
4330
by: Sam | last post by:
I have some issues with HTTP Headers and I was hoping for some pointers or references to good articles. Here is the problem. I have 6 .aspx pages, each page contains a common .ascx. This ascx serves two purposes, 1. it contains a tab strip with response.redirects to navigate to the other pages; 2. I authenticate the user by check to see if a cookie exists, if it doesn't I redirect to a login screen.
2
528
by: Eric Dan | last post by:
Hi, I have written a simple HTTP handler (inherited IHttpHandler) to handle requests for specific extensions. Basically it works. However when trying to access the context.Session object inside the "public void ProcessRequest(HttpContext context)" method, it seems to be null reference (context.Session is not a valid object). There are no problems with other objects like context.Application or context.Request etc. Other regular aspx...
1
3863
by: Markus Brandy | last post by:
Hi, I have to use a Java web service that requires HTTP authentication, so I have to send username and password in the HTTP headers. My C# application has a client implementation that looks like this:
3
4934
by: JansenH | last post by:
We have implemented a 'HTTP Post' client in C# that posts Xml documents to a webserver. This is working fine if the post rate is one post for every 20 seconds. But if the post rate is increased to one post for every 10 seconds the client start getting error 403 'forbidden' from the webserver after a short period of time. The webserver is IIS. The choking of the client/server communication when doing high frequency posting is due to that we...
0
2200
by: Shree | last post by:
While invoking the web service from client, I am setting the credentitals using the following code... ReportingService.Credentials = System.Net.CredentialCache.DefaultCredentials; But in debugger when I check the properties - 'domain', 'user name' and 'password' set in the ReportingService.Credentials; they are blank!!!
1
2470
by: omantawy | last post by:
Hi, I have some legacy ASP web applications that use an unmanaged COM component to connect to a third party application. The third part application has moved to the managed code in the current release with backward compatibility with the unmanaged code. In the future releases, the vendor is going to drop backward compatibility and as a result of that all our legacy ASP applications will break.
0
9642
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10782
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10543
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10213
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7753
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5624
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5789
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4422
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3078
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.