Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Request Verb question

Reply
Thread Tools

Request Verb question

 
 
gouqizi.lvcha@gmail.com
Guest
Posts: n/a
 
      06-19-2007
Is there any method to add a http header when we navigate to the URL.
Also, how to change the request method from "Get" to "Post"?

 
Reply With Quote
 
 
 
 
Randy Webb
Guest
Posts: n/a
 
      06-19-2007
http://www.velocityreviews.com/forums/(E-Mail Removed) said the following on 6/19/2007 2:27 PM:
> Is there any method to add a http header when we navigate to the URL.


Not from the client.

> Also, how to change the request method from "Get" to "Post"?


Before or after the request is made? If before, you can simply change
the method attribute of the form:

formRef.method="get"
formRef.method="post"


--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
 
Reply With Quote
 
 
 
 
Rik
Guest
Posts: n/a
 
      06-19-2007
On Tue, 19 Jun 2007 23:07:41 +0200, Randy Webb <(E-Mail Removed)>
wrote:

> (E-Mail Removed) said the following on 6/19/2007 2:27 PM:
>> Is there any method to add a http header when we navigate to the URL.

>
> Not from the client.


Unless one uses an XMLHTTPRequest, custom headers possible, just not very
usefull to load an entire new page.
--
Rik Wasmus
 
Reply With Quote
 
Rik
Guest
Posts: n/a
 
      06-19-2007
On Tue, 19 Jun 2007 23:45:42 +0200, Randy Webb <(E-Mail Removed)>
wrote:

> Rik said the following on 6/19/2007 5:37 PM:
>> On Tue, 19 Jun 2007 23:07:41 +0200, Randy Webb <(E-Mail Removed)>
>> wrote:
>>
>>> (E-Mail Removed) said the following on 6/19/2007 2:27 PM:
>>>> Is there any method to add a http header when we navigate to the URL.
>>>
>>> Not from the client.

>> Unless one uses an XMLHTTPRequest, custom headers possible, just not
>> very usefull to load an entire new page.

>
> Which doesn't even come close to being useful to what the OP asked -
> "when we _navigate_ to the URL".


Unless he's just got a hazy way of saying: "if someone clicks somewhere in
my navigation menu".

--
Rik Wasmus
 
Reply With Quote
 
Darko
Guest
Posts: n/a
 
      06-19-2007
On Jun 19, 11:07 pm, Randy Webb <(E-Mail Removed)> wrote:
> (E-Mail Removed) said the following on 6/19/2007 2:27 PM:
>
> > Is there any method to add a http header when we navigate to the URL.

>
> Not from the client.
>
> > Also, how to change the request method from "Get" to "Post"?

>
> Before or after the request is made? If before, you can simply change
> the method attribute of the form:
>
> formRef.method="get"
> formRef.method="post"
>
> --
> Randy
> Chance Favors The Prepared Mind
> comp.lang.javascript FAQ -http://jibbering.com/faq/index.html
> Javascript Best Practices -http://www.JavascriptToolbox.com/bestpractices/


I don't think gouqizi meant form submitting, but navigating to a page.
In that case - "not from the client" again.

 
Reply With Quote
 
 
 
Reply

Thread Tools

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
Get the Verb of request in jsp jwren Java 2 10-03-2007 09:04 PM
Microsoft AJAX error? Bad Request (Invalid Verb) jb ASP .Net 2 02-21-2007 06:04 PM
The web serve has been locked down and is blocking the Debug verb Randy ASP .Net 0 03-29-2006 09:47 PM
The web serve has been locked down and is blocking the Debug verb. =?Utf-8?B?UmV6YSBTb2xvdWtp?= ASP .Net 3 11-24-2004 11:25 PM
HTTP error 405 for 'PUT' verb Kenneth Myhra ASP .Net 1 02-17-2004 11:42 PM



Advertisments