Solved

Get file from HTTP with referer

Posted on 2004-10-18
1
471 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 500 total points
ID: 12337167
you can use HttpSendRequest and specify HTTP_REFERER in parameter LPCTSTR lpszHeaders,

welcome to www.fruitfruit.com
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

743 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now