473,385 Members | 1,748 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How to send a referer with AxWebbrowse,please?

Hello,everybody.

This is my simple code(C#):

string str="http://www.cba.com";
object miss=null;
object head="Referer:http://www.abc.com\r\n";
Axwebbrowser1.Navigate(str,ref miss,ref miss,ref miss,ref head);

I do it to make a referer for my send,But I did not catch any referer infomation in http://www.cba.com with JavaScript,Why?
Jul 26 '07 #1
9 2372
Frinavale
9,735 Expert Mod 8TB
Hi Xiaojunfei,

I'm sorry it took so long for you to receive a reply to your question but it was in the Articles section. I have moved your question to the .NET forum. The .NET Articles section is reserved for articles that are purely informational; like "how-tos" etc. The .NET Forum is the place for your questions. In the future please post your questions here (Blue Menu Along the Top: Forums->.NET).

As for your question...
I'm a bit confused about what you are trying to do.
Could you please provide us with more information on the problem you are trying to solve so we can help you better.

Thanks

-Frinny
Jul 30 '07 #2
Thank you very much!
I'm sorry for my Chinese English,~_~,and infact ,I cann't understand the infomation of this site completly,haha.

I want to send a 'referrer' to axwebbrowser when I'm browseing a website .

Look at my Code,please.

object head="Referer:http://www.google.com\r\n";
object miss=null;
axWebbrowser1.Navigate("http://www.abc.com",ref miss,ref miss,ref miss,ref head);

When I test with asp or asp.net,'Request.Urlreferer',I saw the 'referer' is http://www.google.com,
But I test with javascript,'document.referrer',the referrer is null,Why?

Thank You!!
Aug 1 '07 #3
Motoma
3,237 Expert 2GB
Thank you very much!
I'm sorry for my Chinese English,~_~,and infact ,I cann't understand the infomation of this site completly,haha.

I want to send a 'referrer' to axwebbrowser when I'm browseing a website .

Look at my Code,please.

object head="Referer:http://www.google.com\r\n";
object miss=null;
axWebbrowser1.Navigate("http://www.abc.com",ref miss,ref miss,ref miss,ref head);

When I test with asp or asp.net,'Request.Urlreferer',I saw the 'referer' is http://www.google.com,
But I test with javascript,'document.referrer',the referrer is null,Why?

Thank You!!
thank you for clarifying your question. I believe this would be better suited in the Javascript forum. I am going to copy it there with the hopes you get better insight.
Aug 1 '07 #4
acoder
16,027 Expert Mod 8TB
Are you sure you're using referrer and not referer?
Aug 1 '07 #5
Plater
7,872 Expert 4TB
To be clear, "Referer" would be correct and "Referrer" incorrect
Are you sure you're using referrer and not referer?
Aug 1 '07 #6
acoder
16,027 Expert Mod 8TB
To be clear, "Referer" would be correct and "Referrer" incorrect
No, in Javascript, there are two Rs. See link.
Aug 2 '07 #7
acoder
16,027 Expert Mod 8TB
Thank you very much!
I'm sorry for my Chinese English,~_~,and infact ,I cann't understand the infomation of this site completly,haha.

I want to send a 'referrer' to axwebbrowser when I'm browseing a website .

Look at my Code,please.

object head="Referer:http://www.google.com\r\n";
object miss=null;
axWebbrowser1.Navigate("http://www.abc.com",ref miss,ref miss,ref miss,ref head);

When I test with asp or asp.net,'Request.Urlreferer',I saw the 'referer' is http://www.google.com,
But I test with javascript,'document.referrer',the referrer is null,Why?

Thank You!!
document.referrer is null because it will only be 'filled' if you click on a link, not if you set a referer header or even type the URL in the address bar.
Aug 2 '07 #8
Plater
7,872 Expert 4TB
No, in Javascript, there are two Rs. See link.
hmm, well in the ACTUAL header that gets sent, it's only one r.
but I will double check once I get past my latest obstacle
Aug 2 '07 #9
Motoma
3,237 Expert 2GB
hmm, well in the ACTUAL header that gets sent, it's only one r.
but I will double check once I get past my latest obstacle

referer World-Wide Web
A misspelling of "referrer" which somehow made it into the HTTP standard. A given web page's referer (sic) is the URL of whatever web page contains the link that the user followed to the current page. Most browsers pass this information as part of a request.
Aug 2 '07 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Joshua Beall | last post by:
Hi All, I do web design for some small organizations, and one of the sites I have set up takes online conference registrations. Now, most of the time it works. In fact, every time I try it, it...
1
by: jawahar rajan | last post by:
All, I have a question about the Max Referer length. By default this is 256 I am not fully sure I understand this property. It this a header that is sent back to the Server by a client and is it...
2
by: Jonathan Driller | last post by:
I am attempting to block repeat downloads from a site. I need to have a landing page pass a referer to a secured page. I have tried a meta refresh redirect and several Javascript redirect...
1
by: malborg | last post by:
I have simple form in PHP with two input types as text to input login name and password.PS: They use POST method. (index.php) The other script(logowanie.php) checks if login and password is...
3
by: exxos | last post by:
Hi all, I'm trying to list to a html page where the referer is, There are a lot of ways ive tried and work, but the problem if my mainpage uses frames, and no matter where I do the referer check...
3
by: Giuseppe | last post by:
I need to make a little software to know how many visitors see my websites, and where they come from. So I've added this code at the end of a webpage: <!------- Begin Stat code ------------->...
5
by: mike | last post by:
regards: Does each HTTP Request have "Referer:" header? Any positive suggestion is welcome. thank you May goodness be with you all
1
by: Raed Sawalha | last post by:
Hello: In my aspx page I need to check the HTTP_REFERER for (images swf ) file, so when I request the server variable (HTTP_REFERER) like this Request.ServerVariables within (page.aspx) . if the...
2
by: Harsha | last post by:
Hi, Is there any way to set the referer header manually/automatically while redirecting users to other websites so that the $_SERVER; shows the referer set by me. Please help... Thanks,...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.