473,387 Members | 1,834 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,387 software developers and data experts.

My Second Question...........

Does anybody know a function to send a header to a www SERVER?, specifically
the referer field?
Jul 17 '05 #1
6 1606
Joe Cybernet wrote:
Does anybody know a function to send a header to a www SERVER?, specifically
the referer field?


http://www.php.net/curl
or you could fsockopen() and do it 'by hand'
--
--= my mail box only accepts =--
--= Content-Type: text/plain =--
--= Size below 10001 bytes =--
Jul 17 '05 #2
"Joe Cybernet" <no@no.ie> wrote in message
news:KI****************@news.indigo.ie...
Does anybody know a function to send a header to a www SERVER?, specifically the referer field?


This lets you retrieve anything from http://... a file. an image, etc...

http://www-1.gzentools.com/snippetvi...etresource.php

--
Mike Bradley
http://www.gzentools.com -- free online php tools
Jul 17 '05 #3
Joe Cybernet wrote:
Does anybody know a function to send a header to a www SERVER?, specifically
the referer field?


Please use descriptive subjects.
Jul 17 '05 #4
that doesnt work very well. the resulting data includes the header and even
when I strip the header the file is still a invalid JPEG file. It must be
something to do with the chunked transfer. Ah well at least you tried
Jul 17 '05 #5
"Joe Cybernet" <no@no.ie> wrote in message
news:3I****************@news.indigo.ie...
that doesnt work very well. the resulting data includes the header and even when I strip the header the file is still a invalid JPEG file. It must be
something to do with the chunked transfer. Ah well at least you tried


Ok, so unchunk it, that piece of code was to get you started.

Why not pose the question:

Will somebody please write me the ENTIRE script to retieve via http were I
can.......,I do not want to code anything myself.

--
Mike Bradley
http://www.gzentools.com -- free online php tools
Jul 17 '05 #6
Strange that the server would chunk the data when chunked isn't specified in
Accept-Encoding. Try changing the User-Agent to something else. Perhaps the
server using that to determine whether to chunk or not.

Uzytkownik "Joe Cybernet" <no@no.ie> napisal w wiadomosci
news:3I****************@news.indigo.ie...
that doesnt work very well. the resulting data includes the header and even when I strip the header the file is still a invalid JPEG file. It must be
something to do with the chunked transfer. Ah well at least you tried

Jul 17 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: roberto3214 | last post by:
Hi Guys, How are you? I have recently begun some testing on IIS 6.0 in regards to an asp.net application. After lots of testing I decided to create a simple 1k page size webpage to find out...
5
by: Ben Jeurissen | last post by:
Hello, I have to deal with the following issue in C++: Two threads are started from the main thread, both capturing images from a different firewire camera. Both threads take shots of 460800...
8
by: Hunter Hou | last post by:
hello, I'm reading <the C++ programming language>, here's a question for bind2nd. Who can help explain what on earth bind2nd is working? .... void rotate_all( list<Shape*>& ls, int angle ) {...
4
by: Matik | last post by:
Hi, I have a small theoretical issue. I have one table, which is prettyu large. There is lot of evaluations running on this table, that's why, each process need to wait for another to be...
0
by: Manfred Braun | last post by:
Hi All, I've already asked another question , but this is finally the same issue. I cannot execute two asynchron WMI queries on the local machine, one after the other. The original question is...
9
by: EMW | last post by:
I have created a page in aspx and after a click on a button, a new page should open. How is this possible? I tried it doing it like in vb.NET with opening a new form, but it doesn't work. rg,...
8
by: Rick Lederman | last post by:
I am using a PrintDocument and PrintDialog to print. The first time that I print it works, but when I try to print a second time without exiting the entire program I get an...
4
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I make a 10 second delay? ----------------------------------------------------------------------- There...
1
by: =?Utf-8?B?cmJiZW5zb24=?= | last post by:
To begin,, the network infactructure- Servers - Server00 - Windows Server 2003/Installed Server01 - Windows Server 2003/plan to install Server10 - Linux RedHat Workstation/Installed ...
1
by: gdixon | last post by:
Greetings To All! I am using a Access 2003 and my programing skills are of the cut and paste variety. This means begining programming skills and on a good day perhaps middle of the road...
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:
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.