Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > HTTP_referer

Reply
Thread Tools

HTTP_referer

 
 
lardy ninja
Guest
Posts: n/a
 
      09-29-2003
I'm using a URLConnection object to connect to a website. Can anyone
tell me how to pass different values for the HTTP_referer variable to
this site?

TIA

LN.
 
Reply With Quote
 
 
 
 
Steven Coco
Guest
Posts: n/a
 
      10-01-2003
lardy ninja wrote:
> I'm using a URLConnection object to connect to a website. Can anyone
> tell me how to pass different values for the HTTP_referer variable to
> this site?


Before you call connect() on your URLConnection, you should just have to
call the setRequestProperty method with your key/value pair.

This field is not outlined in RFC 2616; so be sure about your spelling,
format, etc.

Good luck.

--

..Steven Coco.
.................................................. .......................
When you're not sure:
"Confess your heart" says the Lord, "and you'll be freed."

 
Reply With Quote
 
 
 
 
Gordon Beaton
Guest
Posts: n/a
 
      10-02-2003
On Wed, 01 Oct 2003 23:38:38 GMT, Steven Coco wrote:
> This field is not outlined in RFC 2616; so be sure about your
> spelling, format, etc.


Isn't this what he means?

http://www.w3.org/Protocols/rfc2616/....html#sec14.36

Or is "HTTP_referer" something different?

/gordon

--
[ do not email me copies of your followups ]
g o r d o n + n e w s @ b a l d e r 1 3 . s e
 
Reply With Quote
 
lardy ninja
Guest
Posts: n/a
 
      10-02-2003
Gordon Beaton <(E-Mail Removed)> wrote in message news:<3f7bda1e$(E-Mail Removed)>...
> On Wed, 01 Oct 2003 23:38:38 GMT, Steven Coco wrote:
> > This field is not outlined in RFC 2616; so be sure about your
> > spelling, format, etc.

>
> Isn't this what he means?
>
> http://www.w3.org/Protocols/rfc2616/....html#sec14.36
>
> Or is "HTTP_referer" something different?
>
> /gordon



Yes that's correct. Can I pass this through a Java call?

LN
 
Reply With Quote
 
Gordon Beaton
Guest
Posts: n/a
 
      10-02-2003
On 2 Oct 2003 13:40:19 -0700, lardy ninja wrote:
> Yes that's correct. Can I pass this through a Java call?


Like Steven already said: use setRequestProperty() before calling
connect().

/gordon

--
[ do not email me copies of your followups ]
g o r d o n + n e w s @ b a l d e r 1 3 . s e
 
Reply With Quote
 
lardy ninja
Guest
Posts: n/a
 
      10-03-2003
Gordon Beaton <(E-Mail Removed)> wrote in message news:<3f7c8f8d$(E-Mail Removed)>...
> On 2 Oct 2003 13:40:19 -0700, lardy ninja wrote:
> > Yes that's correct. Can I pass this through a Java call?

>
> Like Steven already said: use setRequestProperty() before calling
> connect().
>
> /gordon



Thank you both for your help.

LN.
 
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
Getting HTTP_REFERER value John ASP .Net 2 10-08-2004 07:08 AM
Hit redirection & HTTP_REFERER Troy ASP .Net 1 06-26-2004 03:56 PM
Request.ServerVariables ("HTTP_REFERER") using https =?Utf-8?B?cHBhdGVs?= ASP .Net 1 03-03-2004 02:25 AM
HTTP_REFERER blank SStory ASP .Net 1 02-28-2004 07:58 AM
Webblocking software and using Request.ServerVariables("HTTP_REFERER") Elliot M. Rodriguez ASP .Net 1 02-12-2004 05:24 PM



Advertisments