[Mono-dev] http header generation

Robert Jordan robertj at gmx.net
Sun Nov 20 11:25:00 EST 2005


Ivano,

You don't need to change any sources.

In your webservice proxy (it's probably a HttpWebClientProtocol
descendant, right?) just set the UserAgent property.

Robert


> I have got no answert to this.
> Please let me know: I have downloaded mono sources and browsed the code 
> to find the user agent string generatign code with no success .
> 
> At 11.15 18/11/2005, Ivano Luberti wrote:
> 
>> I'm writing a Web Service Client using mono 1.1.9.2
>> When I try to consume my target WS I have two different behaviours 
>> when I compile may classes using Mcrosoft .NEt Framework and Mono.
>> I looked at the message the client sends using the two different run 
>> time and compiler and I found that the only difference is in the USEr 
>> Agent Line  of the HTTP header (see below).
>>
>> Now to be sure that this is the problem I should rewrite the http 
>> header and see if the behaviour is the same.
>> There is someone on the list that can tell me which mono class write 
>> the header: I suppose is in the Mono.Http.dll.
>> IS configurabel in soem way or I have to recompile it ?
>>
>>
>> -------------------------------
>>
>>
>>
>> HTTP Headers:
>>
>>
>>
>> POST / HTTP/1.1
>> User-Agent: Mono Web Services Client Protocol 2.0.50215.16
>> SOAPAction:
>> "
>> http://mytarget/logon
>> "
>> Content-Type: text/xml; charset=utf-8
>> Content-Length: 381
>> Expect: 100-continue
>> Connection: keep-alive
>> Host: mytarget:80
>>
>>
>> HTTP Headers:
>>
>>
>>
>> POST / HTTP/1.1
>> User-Agent:
>> Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client Protocol
>> 1.1.4322.2032)
>> SOAPAction:
>> "
>> http://mytarget/logon
>> "
>> Content-Type: text/xml; charset=utf-8
>> Content-Length: 381
>> Expect: 100-continue
>> Connection: keep-alive
>> Host: mytarget:80
>>
>>
>>
>>
>>
>>
>>
>> ==================================================
>> Archimede Informatica NEWS!
>> ==================================================
>>
>> Realizzato il Sistema Integrato per la biglietteria della Torre di Pisa:
>> prenotazione, vendita, pre-vendita ed emissione dei biglietti di ingresso
>> alla Torre sia online che presso le biglietterie dislocate sulla piazza:
>> http://www.opapisa.it/boxoffice
>>
>> Partner del Progetto Ci-Tel "Front office Telematico per il cittadino"
>> Ente Coordinatore Comune di Pisa
>>
>> http://www.comune.pisa.it/doc/e-government.htm
>>
>>
>> ==================================================
>> dott. Ivano Mario Luberti
>> Archimede Informatica societa' cooperativa a r. l.
>> Sede Operativa
>> Via Gereschi 36 - 56126- Pisa
>> tel.: +39-050- 580959
>> tel/fax: +39-050-9711344
>> e-mail: archimede at archicoop.it
>> web: http://www.archicoop.it
>>
>>
>> _______________________________________________
>> Mono-devel-list mailing list
>> Mono-devel-list at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-devel-list
> 
> 
> ==================================================
> Archimede Informatica NEWS!
> ==================================================
> 
> Realizzato il Sistema Integrato per la biglietteria della Torre di Pisa:
> prenotazione, vendita, pre-vendita ed emissione dei biglietti di ingresso
> alla Torre sia online che presso le biglietterie dislocate sulla piazza:
> 
> http://www.opapisa.it/boxoffice
> 
> Partner del Progetto Ci-Tel "Front office Telematico per il cittadino"
> Ente Coordinatore Comune di Pisa
> 
> http://www.comune.pisa.it/doc/e-government.htm
> 
> 
> ==================================================
> dott. Ivano Mario Luberti
> Archimede Informatica societa' cooperativa a r. l.
> Sede Operativa
> Via Gereschi 36 - 56126- Pisa
> tel.: +39-050- 580959
> tel/fax: +39-050-9711344
> e-mail: archimede at archicoop.it
> web: http://www.archicoop.it
> 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list




More information about the Mono-devel-list mailing list