Coder Social home page Coder Social logo

Comments (5)

 avatar commented on July 30, 2024

It appears as though the header is being set when searching using the search bar:

search01

search02

But is overridden by UIWebView when you actually load the page:

search03

This appears to be standard behaviour on iOS, but I'm currently investigating to see if the headers set automatically by UIWebView can be overwritten.

As an aside, the User Agent string seems to use the build number, which changes with each build we push to Hockey.

from ios-search-and-stories.

quanganhdo avatar quanganhdo commented on July 30, 2024

There's a way to overwrite that (I've done that in one of my apps). I'll look into it this weekend if you want.

Sent from my iPhone

On 02-05-2014, at 18:03, Mic Pringle [email protected] wrote:

It appears as though the header is being set when searching using the search bar:

But is overridden by UIWebView when you actually load the page:

This appears to be standard behaviour on iOS, but I'm currently investigating to see if the headers set automatically by UIWebView can be overwritten.

As an aside, the User Agent string seems to use the build number, which changes with each build we push to Hockey.


Reply to this email directly or view it on GitHub.

from ios-search-and-stories.

 avatar commented on July 30, 2024

Thanks @quanganhdo but I've just pushed a commit that fixes that.

from ios-search-and-stories.

 avatar commented on July 30, 2024

Here's a request sent via the search bar:

search04

Here's the search results being loaded in the web view:

search05

And here's a non-DDG web page being loaded from the results, in the web view:

search06

As you can see, the User Agent is only manipulated on the first two.

This functionality is available in the latest build on Hockey. Give it a shot @nilnilnil and see what you think. Let me know if you notice any unusual behaviour.

from ios-search-and-stories.

 avatar commented on July 30, 2024

@nilnilnil Are you happy for this one to be closed now?

from ios-search-and-stories.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.