Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Get file from HTTP with referer

Posted on 2004-10-18
1
Medium Priority
?
501 Views
Last Modified: 2012-05-05
Hi,

How do I get a file from a website by using... say, URLDownloadToFile but at the same time "set" a referer (er, yea, HTTP_REFERER) when it gets the file?
Cos there is this file I need to get off a website but it only allows a certain HTTP_REFERER to get it.

Please help :)

Thanks!
0
Comment
Question by:wiredx
1 Comment
 
LVL 12

Accepted Solution

by:
OnegaZhang earned 2000 total points
ID: 12337167
you can use HttpSendRequest and specify HTTP_REFERER in parameter LPCTSTR lpszHeaders,

welcome to www.fruitfruit.com
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

877 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question