Autor Beitrag
schani
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 39



BeitragVerfasst: Mo 03.09.07 21:23 
Hi,


wenn ich mit dem Webclient einen String download oder ein Dateidownload vollziehe, welcher Agent wird dem Server übergeben?

Halt sowas wie Mozilla 4.0 Internet Explorer oder Mozilla 3.0 Indy

Gruß

Schani
Kha
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 3803
Erhaltene Danke: 176

Arch Linux
Python, C, C++ (vim)
BeitragVerfasst: Mo 03.09.07 21:27 
Was sagt dir denn dein SDK unter dem Punkt "WebClient class" dazu?
schani Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 39



BeitragVerfasst: Mo 03.09.07 21:31 
das man per Header einen user agent definieren kann, doch welcher wird standardmäßig mitgesendet und wie genau kann man den ändern?
Kha
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 3803
Erhaltene Danke: 176

Arch Linux
Python, C, C++ (vim)
BeitragVerfasst: Mo 03.09.07 21:46 
In der deutschen Version des SDKs ist es vielleicht nicht so deutlich erklärt, solltest du diese benutzen, in der englischen lässt sich jedenfalls Folgendes finden:
Zitat:
A WebClient instance does not send optional HTTP headers by default. If your request requires an optional header, you must add the header to the Headers collection.

Wie der genaue Name des User-Agent-Headers lautet, weiß ich nicht, aber ich weiß, dass es Wikipedia weiß.